Class LongConstraint
java.lang.Object
io.jmix.ui.component.validation.number.LongConstraint
- All Implemented Interfaces:
NumberConstraint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intbooleanisDecimalMax(BigDecimal max, boolean inclusive) booleanisDecimalMin(BigDecimal min, boolean inclusive) booleanisDigits(int integer, int fraction) booleanisDoubleMax(Double max, boolean inclusive) booleanisDoubleMin(Double min, boolean inclusive) booleanisMax(long max) booleanisMin(long min) booleanbooleanbooleanboolean
-
Field Details
-
value
-
bigDecimalValue
-
-
Constructor Details
-
LongConstraint
-
-
Method Details
-
isMax
public boolean isMax(long max) - Specified by:
isMaxin interfaceNumberConstraint- Parameters:
max- max value- Returns:
- true if value less than or equal to max
-
isMin
public boolean isMin(long min) - Specified by:
isMinin interfaceNumberConstraint- Parameters:
min- min value- Returns:
- true if value greater than or equal to min
-
isDigits
public boolean isDigits(int integer, int fraction) - Specified by:
isDigitsin interfaceNumberConstraint- Parameters:
integer- value of integer partfraction- value of fraction part- Returns:
- true if value within accepted range
-
isDecimalMax
- Specified by:
isDecimalMaxin interfaceNumberConstraint- Parameters:
max- max valueinclusive- inclusive option, true by default- Returns:
- true if value less than or equal to max (depends on inclusive option)
-
isDecimalMin
- Specified by:
isDecimalMinin interfaceNumberConstraint- Parameters:
min- min valueinclusive- inclusive option, true by default- Returns:
- true if value less than or equal to min (depends on inclusive option)
-
isNegativeOrZero
public boolean isNegativeOrZero()- Specified by:
isNegativeOrZeroin interfaceNumberConstraint- Returns:
- true if value is less than or equal to 0
-
isNegative
public boolean isNegative()- Specified by:
isNegativein interfaceNumberConstraint- Returns:
- true if value is strictly less than 0
-
isPositiveOrZero
public boolean isPositiveOrZero()- Specified by:
isPositiveOrZeroin interfaceNumberConstraint- Returns:
- true if value is greater than or equal to 0
-
isPositive
public boolean isPositive()- Specified by:
isPositivein interfaceNumberConstraint- Returns:
- true if value is strictly greater than 0
-
isDoubleMax
- Specified by:
isDoubleMaxin interfaceNumberConstraint- Parameters:
max- max valueinclusive- inclusive option, true by default- Returns:
- true if value less than or equal to max (depends on inclusive option)
-
isDoubleMin
- Specified by:
isDoubleMinin interfaceNumberConstraint- Parameters:
min- min valueinclusive- inclusive option, true by default- Returns:
- true if value less than or equal to min (depends on inclusive option)
-
compareValueWith
-