public class MultiBoolean extends Object
Constructor and Description |
---|
MultiBoolean(int numEntries) |
MultiBoolean(int numEntries,
boolean initialValue) |
MultiBoolean(int numEntries,
boolean initialValue,
boolean oneTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
allFalse()
This method returns true if ALL states are false.
|
boolean |
allTrue()
This method returns true if ALL states are true.
|
boolean |
get(int entry)
Gets current state for specified entry
|
void |
set(boolean value,
int entry)
Sets specified entry to specified state
|
public MultiBoolean(int numEntries)
public MultiBoolean(int numEntries, boolean initialValue)
public MultiBoolean(int numEntries, boolean initialValue, boolean oneTime)
public void set(boolean value, int entry)
value
- entry
- public boolean get(int entry)
entry
- public boolean allTrue()
public boolean allFalse()
Copyright © 2017. All rights reserved.