Class DefaultObjectState<T>

    • Constructor Detail

      • DefaultObjectState

        public DefaultObjectState​(T object)
        Deprecated.
        Constructs an object state with an object.
        Parameters:
        object - The non-null object being described
        Throws:
        java.lang.NullPointerException - Thrown if the object is null.
    • Method Detail

      • getObject

        public T getObject()
        Deprecated.
        Specified by:
        getObject in interface ObjectState<T>
        Returns:
        The non-null object being described.
      • setObject

        public void setObject​(T object)
        Deprecated.
        Sets the object being described.
        Parameters:
        object - The new object to describe.
        Throws:
        java.lang.NullPointerException - Thrown if the object is null.
      • getProperty

        public java.lang.Object getProperty​(java.lang.Object key)
        Deprecated.
        Gets a property of the object state.
        Specified by:
        getProperty in interface ObjectState<T>
        Parameters:
        key - The key to the property.
        Returns:
        The value of the object state's property, or null if that property does not exist.
      • setProperty

        public java.lang.Object setProperty​(java.lang.Object key,
                                            java.lang.Object value)
        Deprecated.
        Sets the value of an object state property, and fires a property changed event if the key is a string. If the property represented by the key already exists, it will be replaced.
        Specified by:
        setProperty in interface ObjectState<T>
        Parameters:
        key - The non-null property key.
        value - The property value.
        Returns:
        The old property value associated with the key, or null if no value was associated with the key previously.
        See Also:
        PropertyChangeEvent
      • removeProperty

        public java.lang.Object removeProperty​(java.lang.Object key)
        Deprecated.
        Removes a property of the object state. If the property represented by the key does not exist, no action is taken.
        Specified by:
        removeProperty in interface ObjectState<T>
        Parameters:
        key - The non-null property key.
        Returns:
        The removed property value, or null if there was no property.
      • equals

        public boolean equals​(java.lang.Object object)
        Deprecated.
        Compares object states by comparing their respective objects.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - The object with which to compare this RDF resource; should be another object state.
        Returns:
        true if this object state refers to the same object as specified in the object state object.
        See Also:
        ObjectState, getObject()
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashcode value of the object represented.