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
null
value. 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
DFTermsFactory
static methods.- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(DFTermVisitor visitor)
boolean
equals(java.lang.Object obj)
java.lang.Object
getValue()
Get the value which is wrapped by this class.int
hashCode()
java.lang.String
toString()
java.lang.String
toString(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(DFOperator operator)
-
accept
public void accept(DFTermVisitor visitor)
-
-