|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.magnos.data.AbstractData
org.magnos.data.var.AbstractVar<E>
E
- public abstract class AbstractVar<E>
An abstract implementation of Var.
Constructor Summary | |
---|---|
AbstractVar(int size)
Instantiates a new AbstractVar. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
putValue(E newValue)
Sets the value of this var and writes it to the store. |
E |
takeValue()
Returns the value of this var by reading it from the store and updating the cached value. |
java.lang.String |
toString()
|
Methods inherited from class org.magnos.data.AbstractData |
---|
getActualLocation, getLocation, getParent, getSize, getStore, onRead, onWrite, read, read, read, read, setLocation, setParent, setStore, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.magnos.data.Var |
---|
getValue, setValue |
Methods inherited from interface org.magnos.data.Data |
---|
copy, getActualLocation, getLocation, getParent, getSize, getStore, read, read, read, read, setLocation, setParent, setStore, write, write, write, write |
Constructor Detail |
---|
public AbstractVar(int size)
size
- The fixed size of the Var in bytes.Method Detail |
---|
public E takeValue()
takeValue
in interface Var<E>
public boolean putValue(E newValue)
putValue
in interface Var<E>
newValue
- The value to write to the store.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |