Class LessSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ComparableScalarSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.LessSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
An implementation of less than comparison: This predicate returns true if and only if the
predicate's argument is less than the expected value. Comparison is performed using the compareTo
method.
- Since:
- 7.1
- Author:
- Niv ingberg
- See Also:
-
Field Summary
Fields inherited from class ScalarSpacePredicate
_convertedValueWrapper, _expectedValue, functionCallDescription -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.LessSpacePredicate(Comparable<?> expectedValue) Creates a less predicate using the specified expected value.LessSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator) Creates a less predicate using the specified expected value and comparator. -
Method Summary
Methods inherited from class ComparableScalarSpacePredicate
equals, getComparator, match, readExternalImpl, writeExternalImplMethods inherited from class ScalarSpacePredicate
execute, getExpectedValue, getPreparedExpectedValue, toStringMethods inherited from class AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecutionMethods inherited from class AbstractExternalizable
readExternal, writeExternalMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
LessSpacePredicate
public LessSpacePredicate()Default constructor for Externalizable. -
LessSpacePredicate
Creates a less predicate using the specified expected value.- Parameters:
expectedValue- Expected value.
-
LessSpacePredicate
Creates a less predicate using the specified expected value and comparator.- Parameters:
expectedValue- Expected value.comparator- Comparator to use while comparing.
-
-
Method Details
-
compare
protected boolean compare(int compareResult) - Specified by:
comparein classComparableScalarSpacePredicate
-
getOperatorName
- Specified by:
getOperatorNamein classScalarSpacePredicate
-