@Test public void testModifyFilterForKey() throws Exception { TestObjectFilter objectFilter = new TestObjectFilter(); objectFilter.registerFilterModifierForProperties(FilterUtil.FilterModifier.APPEND_TIMEZONEOFFSET, TestObjectFilter.Property.string); Assert.assertEquals("Did not modify string!", FilterUtil.FilterModifier.APPEND_TIMEZONEOFFSET.apply("timezone", objectFilter), objectFilter.modifyFilterForKey(TestObjectFilter.Property.string, "timezone")); Assert.assertEquals("Did modify hash!", "", objectFilter.modifyFilterForKey(TestObjectFilter.Property.hash, "")); }
final <V extends Enum<V> & PaginationFilterProperty> String modifyFilterForKey(V key, String value) { return filterModifiers.containsKey(key) ? filterModifiers.get(key).apply(value, this) : value; }
PaginationFilter implements Predicate<T> { final <V extends Enum<V> & PaginationFilterProperty> String modifyFilterForKey(V key, String value) { return filterModifiers.containsKey(key) ? filterModifiers.get(key).apply(value, this) : value; } }
PaginationFilter implements Predicate<T> { final <V extends Enum<V> & PaginationFilterProperty> String modifyFilterForKey(V key, String value) { return filterModifiers.containsKey(key) ? filterModifiers.get(key).apply(value, this) : value; }  }
PaginationFilter implements Predicate<T> { final <V extends Enum<V> & PaginationFilterProperty> String modifyFilterForKey(V key, String value) { return filterModifiers.containsKey(key) ? filterModifiers.get(key).apply(value, this) : value; }  PaginationFilter<T> replaceFilter(final String filter, final String timeZoneOffset); final boolean test(T object, Class<V> enumType); }
PaginationFilter implements Predicate<T> { final <V extends Enum<V> & PaginationFilterProperty> String modifyFilterForKey(V key, String value) { return filterModifiers.containsKey(key) ? filterModifiers.get(key).apply(value, this) : value; }  PaginationFilter<T> replaceFilter(final String filter, final String timeZoneOffset); final boolean test(T object, Class<V> enumType);  }