Package com.floragunn.codova.validation
Class ValidatingDocNode.IntegerListAttribute
- java.lang.Object
-
- com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute<ValidatingDocNode.NumberListAttribute<T>>
-
- com.floragunn.codova.validation.ValidatingDocNode.NumberListAttribute<Integer>
-
- com.floragunn.codova.validation.ValidatingDocNode.IntegerListAttribute
-
- Enclosing class:
- ValidatingDocNode
public class ValidatingDocNode.IntegerListAttribute extends ValidatingDocNode.NumberListAttribute<Integer>
-
-
Field Summary
-
Fields inherited from class com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute
documentNode, expandedVariable, expected, fullAttributePath, name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntegerconvertFromNumber(Number number)ValidatingDocNode.IntegerListAttributeinRange(int min, int max)com.floragunn.fluent.collections.ImmutableList<Integer>ofIntegers()ValidatingDocNode.IntegerListAttributewithDefault(List<Integer> defaultValue)-
Methods inherited from class com.floragunn.codova.validation.ValidatingDocNode.NumberListAttribute
inRange, ofNumbers, validatedBy
-
Methods inherited from class com.floragunn.codova.validation.ValidatingDocNode.AbstractAttribute
expandVariable, expandVariable, expandVariables, expandVariablesForStrings, expected, getAttributePathForValidationError
-
-
-
-
Method Detail
-
withDefault
public ValidatingDocNode.IntegerListAttribute withDefault(List<Integer> defaultValue)
- Overrides:
withDefaultin classValidatingDocNode.NumberListAttribute<Integer>
-
convertFromNumber
protected Integer convertFromNumber(Number number)
- Specified by:
convertFromNumberin classValidatingDocNode.NumberListAttribute<Integer>
-
inRange
public ValidatingDocNode.IntegerListAttribute inRange(int min, int max)
-
ofIntegers
public com.floragunn.fluent.collections.ImmutableList<Integer> ofIntegers()
-
-