Package com.im.df.api.dml
Class DFTermValue
- java.lang.Object
-
- com.im.df.api.dml.DFTerm
-
- com.im.df.api.dml.DFTermValue
-
public final class DFTermValue extends DFTerm
This object represents a constant value in the hierarchical substructure of DFTerms, it's wrapper class around such a constant value.It's not allowed to wrap
nullvalue. If you really want to fill null into DFTerm, then you must use your special constant non-null value (for example if the value is of typeclass MyType, then addpublic static final MyType NULL = new MyType()constant to your class and use this constant instead ofnull.The object is immutable, the value cannot be changed once the object is created. Currently it doesn't have public constructor nor create method. If you want to use this object you can create using
DFTermsFactorystatic methods.- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DFTermVisitor visitor)booleanequals(java.lang.Object obj)java.lang.ObjectgetValue()Get the value which is wrapped by this class.inthashCode()java.lang.StringtoString()java.lang.StringtoString(DFOperator operator)
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Get the value which is wrapped by this class.- Returns:
- The value. Never returns null.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(DFOperator operator)
-
accept
public void accept(DFTermVisitor visitor)
-
-