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, resetStamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnvironment
public EnumDelta(IEnvironment environment)
public void lazyClear()
IDelta
public void add(int value, ICause cause)
add
in interface IEnumDelta
value
- value to addcause
- of the removalpublic int get(int idx)
IEnumDelta
get
in interface IEnumDelta
idx
- rank of the valuepublic ICause getCause(int idx)
IntDelta
Copyright © 2017. All rights reserved.