Class ValidIntegerPredicate
java.lang.Object
de.hybris.platform.cmsfacades.common.predicate.ValidIntegerPredicate
Predicate to test if a given string is parsable into an Integer and that it matches lower and upper boundaries when
set
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermine if both min and max are nullprotected IntegergetMax()protected IntegergetMin()protected booleanisGreaterOrEqualToMin(int num) If min is not null, determine if num is greater or equal to minprotected booleanisLessOrEqualToMax(int num) If max is not null, determine if num is less or equal to maxvoidvoidboolean
-
Constructor Details
-
ValidIntegerPredicate
public ValidIntegerPredicate()
-
-
Method Details
-
test
-
isGreaterOrEqualToMin
protected boolean isGreaterOrEqualToMin(int num) If min is not null, determine if num is greater or equal to min -
isLessOrEqualToMax
protected boolean isLessOrEqualToMax(int num) If max is not null, determine if num is less or equal to max -
areMinAndMaxNull
protected boolean areMinAndMaxNull()Determine if both min and max are null -
getMin
-
setMin
-
getMax
-
setMax
-