|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.AccumulatorBoolean
public class AccumulatorBoolean
Accumulator Boolean container. Typically used in conditions where it is desireable to pass an Boolean to an inner-class and have the value accessible from outside the inner-class. (If the Boolean is to be used from different threads in a multi-threaded environment, use "AtomicBoolean" instead).
Constructor Summary | |
---|---|
AccumulatorBoolean()
Constructor |
|
AccumulatorBoolean(boolean val)
Constructor |
Method Summary | |
---|---|
void |
and(boolean v)
AND's the specified value with the accumulator |
boolean |
get()
Gets the value of the accumulator |
void |
not()
NOT's the value of the accumulator |
void |
or(boolean v)
OR's the specified value with the accumulator |
void |
set(boolean v)
Sets the value of the accumulator |
void |
xor(boolean v)
XOR's the specified value with the accumulator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccumulatorBoolean()
public AccumulatorBoolean(boolean val)
val
- Initial valueMethod Detail |
---|
public void set(boolean v)
v
- The new valuepublic boolean get()
public void and(boolean v)
v
- The value to ANDpublic void or(boolean v)
v
- The value to ORpublic void xor(boolean v)
v
- The value to XORpublic void not()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |