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.

    Author:
    Petr Hamernik
    • 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 class java.lang.Object
      • hashCode

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

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

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