Class EqualityKey

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

    public abstract class EqualityKey
    extends LinkedList<DefaultFactHandle>
    implements java.io.Externalizable
    Upon instantiation the EqualityKey caches the first Object's hashCode this can never change. The EqualityKey has an internal datastructure which references all the handles which are equal. It also records Whether the referenced facts are JUSTIFIED or STATED
    See Also:
    Serialized Form
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class LinkedList<DefaultFactHandle>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class LinkedList<DefaultFactHandle>
        Throws:
        java.io.IOException
      • setLogicalFactHandle

        public abstract void setLogicalFactHandle​(InternalFactHandle logicalFactHandle)
      • getStatus

        public int getStatus()
        Returns:
        the status
      • setStatus

        public void setStatus​(int status)
        Parameters:
        status - the status to set
      • toString

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

        public boolean equals​(java.lang.Object object)
        Equality for the EqualityKey means two things. It returns true if the object is also an EqualityKey the of the same the same identity as this. It also returns true if the object is equal to the head FactHandle's referenced Object.
        Overrides:
        equals in class LinkedList<DefaultFactHandle>