|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.core.util.Flags
The class contains an array of parameters of the boolean type.
The array length is specifed while constructing.
Two primitive operations, namely set and has,
are provided. The class allows the deep copy and deep compare operations.
| Constructor Summary | |
Flags(boolean[] flags)
Construct an object as a wrapper of the specified array of flags. |
|
Flags(int size)
Construct an array of flags of the specified size. |
|
| Method Summary | |
java.lang.Object |
clone()
Create a deep copy of this object. |
boolean |
equals(java.lang.Object obj)
Compare this object with another vector of flags and return true if they coinside. |
boolean[] |
flags()
Return the array of flags wrapped by this object. |
boolean |
has(int index)
Return the flag of the specified index. |
boolean |
set(int index,
boolean value)
Set a flag of the specified index and return it. |
int |
size()
Return a length of the array. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Flags(int size)
public Flags(boolean[] flags)
| Method Detail |
public final int size()
public final boolean[] flags()
public final boolean has(int index)
public final boolean set(int index,
boolean value)
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||