Class LongConstraint
java.lang.Object
io.jmix.flowui.component.validation.number.LongConstraint
- All Implemented Interfaces:
NumberConstraint
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
boolean
isDecimalMax
(BigDecimal max, boolean inclusive) boolean
isDecimalMin
(BigDecimal min, boolean inclusive) boolean
isDigits
(int integer, int fraction) boolean
isDoubleMax
(Double max, boolean inclusive) boolean
isDoubleMin
(Double min, boolean inclusive) boolean
isMax
(long max) boolean
isMin
(long min) boolean
boolean
boolean
boolean
-
Field Details
-
value
-
bigDecimalValue
-
-
Constructor Details
-
LongConstraint
-
-
Method Details
-
isMax
public boolean isMax(long max) - Specified by:
isMax
in interfaceNumberConstraint
- Parameters:
max
- max value- Returns:
- true if value less than or equal to max
-
isMin
public boolean isMin(long min) - Specified by:
isMin
in 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:
isDigits
in interfaceNumberConstraint
- Parameters:
integer
- value of integer partfraction
- value of fraction part- Returns:
- true if value within accepted range
-
isDecimalMax
- Specified by:
isDecimalMax
in 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:
isDecimalMin
in 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:
isNegativeOrZero
in interfaceNumberConstraint
- Returns:
- true if value is less than or equal to 0
-
isNegative
public boolean isNegative()- Specified by:
isNegative
in interfaceNumberConstraint
- Returns:
- true if value is strictly less than 0
-
isPositiveOrZero
public boolean isPositiveOrZero()- Specified by:
isPositiveOrZero
in interfaceNumberConstraint
- Returns:
- true if value is greater than or equal to 0
-
isPositive
public boolean isPositive()- Specified by:
isPositive
in interfaceNumberConstraint
- Returns:
- true if value is strictly greater than 0
-
isDoubleMax
- Specified by:
isDoubleMax
in 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:
isDoubleMin
in 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
-