Package jadex.rules.state.javaimpl
Class OAVWeakIdGenerator.OAVInternalObjectId
- java.lang.Object
-
- jadex.rules.state.javaimpl.OAVWeakIdGenerator.OAVInternalObjectId
-
- Enclosing class:
- OAVWeakIdGenerator
public static class OAVWeakIdGenerator.OAVInternalObjectId extends java.lang.ObjectAn id for an OAV object.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ref.WeakReferenceextidThe weak reference to the external id.protected java.lang.ref.WeakReferenceextid2The weak reference to the phantom external id (e.g. used in rete memory, but doesn't prevent garbage collection).protected longidThe id value.protected java.lang.ref.ReferenceQueuequeueThe reference queue.protected OAVObjectTypetypeThe object type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Test if two object are equal.OAVWeakIdGenerator.OAVExternalObjectIdgetPhantomExternalId()Get the phantom external id (e.g. used in events).OAVWeakIdGenerator.OAVExternalObjectIdgetWeakExternalId()Get the weak external id.inthashCode()Return the hashcode for this id.booleanisClear()Test if no external references exist.java.lang.StringtoString()Create a string representation of this OAV object id.
-
-
-
Field Detail
-
type
protected OAVObjectType type
The object type.
-
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
-
getWeakExternalId
public OAVWeakIdGenerator.OAVExternalObjectId getWeakExternalId()
Get the weak external id.
-
getPhantomExternalId
public OAVWeakIdGenerator.OAVExternalObjectId getPhantomExternalId()
Get the phantom external id (e.g. used in events).
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
Test if two object are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- The object to compare to.
-
hashCode
public int hashCode()
Return the hashcode for this id.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hashcode for this id.
-
-