io.sarl.lang.core
Class AtomicSkillReference
All Superinterfaces:
java.io.Serializable, java.lang.Cloneable
class AtomicSkillReference
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A reference to a skill that could be clear dynamically and that is managing the calls to the install(), prepareUninstallation() and uninstall() automatically.

This class is thread-safe.

This type does not extend the java.lang.reflect.Reference because of the private constructor of this later.

This type does not extend the java.util.concurrent.atomic.AtomicReference because we don't want to exhibit several of its public functions.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.11
Constructor Summary
Constructor and description
new(Skill)
Constructor.
Action Summary
Modifier and type Action and description
Skill clear
Clears this reference object.
AtomicSkillReference clone
boolean equals(Object)
Skill get
Returns this reference object's referent.
int hashCode
java.lang.String toString
Constructor Details
new(Skill)
new(Skill)
Constructor.
Parameters:
object - the object to reference to.
Action Details
clear
def clear : Skill
Clears this reference object.
Returns:
the old reference.
clone
def clone : AtomicSkillReference
equals(Object)
def equals(Object) : boolean
get
def get : Skill
Returns this reference object's referent.
Returns:
the object to which this reference refers, or null if this reference object has been cleared.
hashCode
def hashCode : int
toString
def toString : java.lang.String