public final class FinalReference<T> extends Object implements Serializable
IllegalStateException
is thrown.Constructor and Description |
---|
FinalReference()
Create a new final reference.
|
FinalReference(T devault)
Create a new FinalReference with the given default value.
|
public FinalReference()
public FinalReference(T devault)
isFinal() == false
.devault
- the default value of the reference.public boolean isFinal()
IllegalStateException
or not.true
if this reference can't be set again,
false otherwise.public void set(T value)
IllegalStateException
is thrown.value
- the value to setIllegalStateException
- if you try to set the reference value twice.© 2007-2014 Franz Wilhelmstötter (2014-10-03 19:44)