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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
Test if two object are equal.OAVWeakIdGenerator.OAVExternalObjectId
getPhantomExternalId()
Get the phantom external id (e.g. used in events).OAVWeakIdGenerator.OAVExternalObjectId
getWeakExternalId()
Get the weak external id.int
hashCode()
Return the hashcode for this id.boolean
isClear()
Test if no external references exist.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
Test if two object are equal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- The object to compare to.
-
hashCode
public int hashCode()
Return the hashcode for this id.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hashcode for this id.
-
-