public class RuleBuilderCollectionImpl<T,P> extends Object implements RuleBuilderCollection<T,P>, WhenCollection<T,P>, WheneverCollection<T,P>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.function.Function<T,String> |
fieldName |
protected java.util.function.Function<T,P> |
function |
| Constructor and Description |
|---|
RuleBuilderCollectionImpl(java.util.function.Function<T,Collection<P>> function) |
RuleBuilderCollectionImpl(String fieldName,
java.util.function.Function<T,Collection<P>> function) |
protected final java.util.function.Function<T,String> fieldName
protected final java.util.function.Function<T,P> function
public RuleBuilderCollectionImpl(String fieldName, java.util.function.Function<T,Collection<P>> function)
public RuleBuilderCollectionImpl(java.util.function.Function<T,Collection<P>> function)
public WheneverCollection<T,P> whenever(java.util.function.Predicate<Collection<P>> whenever)
public Must<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> must(java.util.function.Predicate<Collection<P>> must)
public Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withMessage(String message)
withMessage in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withMessage(java.util.function.Function<T,String> message)
withMessage in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withMessage in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withCode(String code)
withCode in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withCode(java.util.function.Function<T,String> code)
withCode in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withCode in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withFieldName(String fieldName)
withFieldName in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withFieldName(java.util.function.Function<T,String> fieldName)
withFieldName in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withFieldName in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withAttempedValue(Object attemptedValue)
withAttempedValue in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withAttempedValue(java.util.function.Function<T,Object> attemptedValue)
withAttempedValue in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>withAttempedValue in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public HandleInvalidField<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> handlerInvalidField(HandlerInvalidField<Collection<P>> handlerInvalidField)
handlerInvalidField in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public Critical<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> critical()
critical in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface HandleInvalidField<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface WithValidator<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public Critical<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> critical(Class<? extends ValidationException> clazz)
critical in interface AttemptedValue<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface Code<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface FieldName<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface HandleInvalidField<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface Message<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface When<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>critical in interface WithValidator<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>public WithValidator<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>> withValidator(Validator<P> validator)
withValidator in interface WheneverCollection<T,P>public WhenCollection<T,P> when(java.util.function.Predicate<Collection<P>> when)
when in interface Must<T,Collection<P>,WhenCollection<T,P>,WheneverCollection<T,P>>Copyright © 2019–2021 com.github.mvallim. All rights reserved.