Class UntypedValueImpl

  • All Implemented Interfaces:
    java.io.Serializable, TypedValue

    public class UntypedValueImpl
    extends java.lang.Object
    implements TypedValue
    Used when the type of an object has not been specified by the user and needs to be autodetected.
    Author:
    Daniel Meyer
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean isTransient  
      protected java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      UntypedValueImpl​(java.lang.Object object)  
      UntypedValueImpl​(java.lang.Object object, boolean isTransient)  
    • Field Detail

      • value

        protected java.lang.Object value
      • isTransient

        protected boolean isTransient
    • Constructor Detail

      • UntypedValueImpl

        public UntypedValueImpl​(java.lang.Object object)
      • UntypedValueImpl

        public UntypedValueImpl​(java.lang.Object object,
                                boolean isTransient)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Description copied from interface: TypedValue
        The actual value. May be null in case the value is null.
        Specified by:
        getValue in interface TypedValue
        Returns:
        the value
      • getType

        public ValueType getType()
        Description copied from interface: TypedValue
        The type of the value. See ValueType for a list of built-in ValueTypes.
        Specified by:
        getType in interface TypedValue
        Returns:
        the type of the value.
      • toString

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isTransient

        public boolean isTransient()
        Description copied from interface: TypedValue
        Indicator for transience of the value
        Specified by:
        isTransient in interface TypedValue
        Returns:
        isTransient
      • setTransient

        public void setTransient​(boolean isTransient)