Class 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 type class MyType, then add public static final MyType NULL = new MyType() constant to your class and use this constant instead of null.

    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.

    Petr Hamernik
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Get the value which is wrapped by this class.
        The value. Never returns null.
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(DFOperator operator)