public class LongIntervalValidator extends AbstractNumberIntervalValidator<Long>
ContentValidator
validating the content by comparing one or more couples of long values.Constructor and Description |
---|
LongIntervalValidator() |
Modifier and Type | Method and Description |
---|---|
protected SimpleField<Long> |
getEmptyValue()
Get a value holder containing an empty value array.
|
protected SimpleField<Long> |
getValues(Form parentForm,
String fieldName)
Get the values of the field to validate from the form.
|
protected boolean |
isLessThan(Long n1,
Long n2)
Test if the first number is less than the second one.
|
addErrorEmpty, addIntervalError, configureMaxPath, configureMinPath, isSupportedType
_validateInterval, configure, service, validate, validate
getContentType, setContentType
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public LongIntervalValidator()
protected SimpleField<Long> getValues(Form parentForm, String fieldName)
AbstractIntervalValidator
getValues
in class AbstractIntervalValidator<Long>
parentForm
- The form containing the user values.fieldName
- The field name.protected SimpleField<Long> getEmptyValue()
AbstractIntervalValidator
getEmptyValue
in class AbstractIntervalValidator<Long>
protected boolean isLessThan(Long n1, Long n2)
AbstractIntervalValidator
isLessThan
in class AbstractIntervalValidator<Long>
n1
- The first number to compare.n2
- The second number to compare.