Package jadex.collection
Class WeakEntry<T>
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference<T>
jadex.collection.WeakObject<T>
jadex.collection.WeakEntry<T>
A weak entry is a reference with an additional argument
that can be inspected the referent is garbage collected.
E.g. the action reference queue interprets the argument
as a runnable to be executed.
- See Also:
-
Field Summary
FieldsFields inherited from class jadex.collection.WeakObject
hashcode
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jadex.collection.WeakObject
equals, hashCode
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
arg
Optional command argument.
-
-
Constructor Details
-
WeakEntry
Construct a new reference.- Parameters:
object
- Object to reference.arg
- The argument.
-
WeakEntry
Construct a WeakObject.- Parameters:
object
- Object to reference.arg
- The argument.queue
- Reference queue.
-
-
Method Details
-
getArgument
Get the argument.- Returns:
- The argument.
-