/** * Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing. */ @SuppressWarnings("unchecked") default R setRefreshPolicy(String refreshPolicy) { if (refreshPolicy != null) { setRefreshPolicy(RefreshPolicy.parse(refreshPolicy)); } return (R) this; }
/** * Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing. */ @SuppressWarnings("unchecked") default R setRefreshPolicy(String refreshPolicy) { if (refreshPolicy != null) { setRefreshPolicy(RefreshPolicy.parse(refreshPolicy)); } return (R) this; }
/** * Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing. */ @SuppressWarnings("unchecked") default R setRefreshPolicy(String refreshPolicy) { if (refreshPolicy != null) { setRefreshPolicy(RefreshPolicy.parse(refreshPolicy)); } return (R) this; }
/** * Parse the refresh policy from a string, only modifying it if the string is non null. Convenient to use with request parsing. */ @SuppressWarnings("unchecked") default R setRefreshPolicy(String refreshPolicy) { if (refreshPolicy != null) { setRefreshPolicy(RefreshPolicy.parse(refreshPolicy)); } return (R) this; }