Class OAVWeakIdGenerator.OAVInternalObjectId

  • Enclosing class:
    OAVWeakIdGenerator

    public static class OAVWeakIdGenerator.OAVInternalObjectId
    extends java.lang.Object
    An id for an OAV object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.ref.WeakReference extid
      The weak reference to the external id.
      protected java.lang.ref.WeakReference extid2
      The weak reference to the phantom external id (e.g. used in rete memory, but doesn't prevent garbage collection).
      protected long id
      The id value.
      protected java.lang.ref.ReferenceQueue queue
      The reference queue.
      protected OAVObjectType type
      The object type.
    • Field Detail

      • id

        protected long id
        The id value.
      • extid

        protected java.lang.ref.WeakReference extid
        The weak reference to the external id.
      • extid2

        protected java.lang.ref.WeakReference extid2
        The weak reference to the phantom external id (e.g. used in rete memory, but doesn't prevent garbage collection).
      • queue

        protected java.lang.ref.ReferenceQueue queue
        The reference queue.
    • Method Detail

      • isClear

        public boolean isClear()
        Test if no external references exist.
        Returns:
        True, if no exist.
      • toString

        public java.lang.String toString()
        Create a string representation of this OAV object id.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Test if two object are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - The object to compare to.
      • hashCode

        public int hashCode()
        Return the hashcode for this id.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashcode for this id.