public final class OneValueDelta extends TimeStampedObject implements IEnumDelta
Constructor and Description |
---|
OneValueDelta(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 OneValueDelta(IEnvironment environment)
public void lazyClear()
IDelta
public void add(int value, ICause cause)
IEnumDelta
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 © 2015. All rights reserved.