|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.mem.StoredBool
public final class StoredBool
A class implementing backtrackable booleans.
Constructor Summary | |
---|---|
StoredBool(Environment env,
boolean b)
Constructs a stored search with an initial value. |
Method Summary | |
---|---|
boolean |
get()
Returns the current value. |
Environment |
getEnvironment()
Retrieving the environment |
void |
set(boolean b)
Modifies the value and stores if needed the former value on the trailing stack. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StoredBool(Environment env, boolean b)
Method Detail |
---|
public boolean get()
get
in interface IStateBool
public void set(boolean b)
set
in interface IStateBool
public Environment getEnvironment()
getEnvironment
in interface IStateBool
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 |