Package org.oddjob.values.types
Class ComparisonType<T>
java.lang.Object
org.oddjob.values.types.ComparisonType<T>
- All Implemented Interfaces:
ArooaValue,ArooaSessionAware,ValueFactory<Predicate<T>>
public class ComparisonType<T>
extends Object
implements ValueFactory<Predicate<T>>, ArooaSessionAware
- Author:
- rob
Description
Provides a Predicate from simple checks.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEq()getGe()getGt()getLe()getLt()getName()getNe()booleangetNull()getZ()voidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidsetEq(ArooaValue eq) voidsetGe(ArooaValue ge) voidsetGt(ArooaValue gt) voidsetLe(ArooaValue le) voidsetLt(ArooaValue lt) voidvoidsetNe(ArooaValue ne) voidsetNull(boolean value) voidtoString()toValue()Provide an instance of the type this is a factory for.
-
Constructor Details
-
ComparisonType
public ComparisonType()
-
-
Method Details
-
toValue
Description copied from interface:ValueFactoryProvide an instance of the type this is a factory for.- Specified by:
toValuein interfaceValueFactory<T>- Returns:
- An instance of the type. May be null.
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
getName
-
setName
-
getNull
public boolean getNull() -
setNull
public void setNull(boolean value) -
getZ
-
setZ
-
getEq
-
setEq
-
getNe
-
setNe
-
getLt
-
setLt
-
getGt
-
setGt
-
getLe
-
setLe
-
getGe
-
setGe
-
toString
-