/** * New instance of {@link Enforcement} options. * * @param input the input that is compared against the filters * @param filters additional filters * @return the enforcement instance */ public static Enforcement newEnforcement(final String input, final Set<String> filters) { return ImmutableEnforcement.of(input, filters); }
/** * New instance of {@link Enforcement} options. * * @param input the input that is compared against the filters * @param filters additional filters * @return the enforcement instance */ public static Enforcement newEnforcement(final String input, final Set<String> filters) { return ImmutableEnforcement.of(input, filters); }
/** * Create a copy of this object with error message set. * * @param enforcement the enforcement options * @return a copy of this object. */ public static Enforcement newEnforcement(final Enforcement enforcement) { return ImmutableEnforcement.of(enforcement.getInput(), enforcement.getFilters()); }
/** * Create a copy of this object with error message set. * * @param enforcement the enforcement options * @return a copy of this object. */ public static Enforcement newEnforcement(final Enforcement enforcement) { return ImmutableEnforcement.of(enforcement.getInput(), enforcement.getFilters()); }