public final class EnumDelta extends TimeStampedObject implements IEnumDelta
add a value, clear the structure
and execute a Procedure for each value stored.| Constructor and Description |
|---|
EnumDelta(IEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value,
ICause cause)
Adds a new value to the delta
|
int |
get(int idx)
Return the idx^th value stored in the delta, if any
|
ICause |
getCause(int idx)
Return the cause of the idx^th cause stored in the delta, if any
|
void |
lazyClear()
Lazy clear the delta, on world change
|
int |
size()
Returns the number of element
|
getEnvironment, getTimeStamp, needReset, resetStampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnvironmentpublic EnumDelta(IEnvironment environment)
public void lazyClear()
IDeltapublic void add(int value,
ICause cause)
add in interface IEnumDeltavalue - value to addcause - of the removalpublic int get(int idx)
IEnumDeltaget in interface IEnumDeltaidx - rank of the valuepublic ICause getCause(int idx)
IntDeltaCopyright © 2018. All rights reserved.