@Test public void testAtLeastOption() throws Exception { Root root = new Root( "root1", new Child("child1", 2, 5), new NullableChild("child2") ); Root sanitized = apply(root); assertThat(sanitized.getChild().getMax()).isEqualTo(10); }
@Override public Optional<Object> apply(Object entity) { return apply(entity, NOTHING); }
AnnotationBasedSanitizer extends AbstractFieldSanitizer<Object> { @Override public Optional<Object> apply(Object entity) { return apply(entity, NOTHING); } }
AnnotationBasedSanitizer extends AbstractFieldSanitizer<Object> { @Override public Optional<Object> apply(Object entity) { return apply(entity, NOTHING); } AnnotationBasedSanitizer(EvaluationContext spelContext,
                                    Function<Class<?>, Boolean> innerEntityPredicate); }
AnnotationBasedSanitizer extends AbstractFieldSanitizer<Object> { @Override public Optional<Object> apply(Object entity) { return apply(entity, NOTHING); } AnnotationBasedSanitizer(EvaluationContext spelContext,
                                    Function<Class<?>, Boolean> innerEntityPredicate); @Override Optional<Object> apply(Object entity); }
AnnotationBasedSanitizer extends AbstractFieldSanitizer<Object> { @Override public Optional<Object> apply(Object entity) { return apply(entity, NOTHING); } AnnotationBasedSanitizer(EvaluationContext spelContext,
                                    Function<Class<?>, Boolean> innerEntityPredicate); @Override Optional<Object> apply(Object entity);  }