/** * Creates a new update action to unset the {@code predicate} property. * @return the {@code SetPredicate} update action. */ public static SetPredicate ofUnset() { return new SetPredicate(null); } }
/** * Creates a new update action from the given parameters. * * @param predicate the {@code predicate} property {@link ShippingMethod#getPredicate()}. * @return the {@code SetPredicate} update action. */ public static SetPredicate of(@Nullable final String predicate) { return new SetPredicate(predicate); }