public class ReleaseState extends java.lang.Object implements IReleasable, java.io.Serializable
IReleasable
interface.
Constructor and Description |
---|
ReleaseState()
Creates a new instance this has the state "not released".
|
Modifier and Type | Method and Description |
---|---|
void |
checkState()
Checks if this object has been released already and throws an IllegalStateException
if that is the case.
|
boolean |
isReleased()
Returns true if this object has been released.
|
void |
release()
Changes the internal state to "released".
|
protected void |
setIsReleased(boolean bool) |
public ReleaseState()
public boolean isReleased()
public void checkState()
java.lang.IllegalStateException
- If the object has been released.public void release()
release
in interface IReleasable
protected void setIsReleased(boolean bool)