public class SingleAccess extends java.lang.Object implements Resettable
access() will throw an IllegalStateException with the given
error message.| Constructor and Description |
|---|
SingleAccess() |
SingleAccess(java.lang.String errMsg) |
| Modifier and Type | Method and Description |
|---|---|
void |
access()
Can only be called once.
|
void |
reset()
Undoes the last access.
|
boolean |
wasAccessed()
Tells whether this access point has been accessed already.
|
public SingleAccess()
public SingleAccess(java.lang.String errMsg)
public void access()
public boolean wasAccessed()
public void reset()
reset in interface ResettableCopyright © 2014 EsprIT-Systems. All Rights Reserved.