public class AtomicSkillReference extends Object implements Serializable, Cloneable
AtomicSkillReference#install()
, AtomicSkillReference#prepareUninstallation()
and AtomicSkillReference#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.
Constructor and Description |
---|
AtomicSkillReference(object : Skill)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Skill |
clear()
Clears this reference object.
|
AtomicSkillReference |
clone() |
boolean |
equals(obj : Object) |
Skill |
get()
Returns this reference object's referent.
|
int |
hashCode() |
String |
toString() |
public new
(object : Skill)
object
- the object to reference to.public def
clone() : AtomicSkillReference
public def
get() : Skill
AtomicSkillReference
null
if this reference object has been cleared.public def
clear() : Skill
AtomicSkillReference
Copyright © 2021 the original authors or authors.