|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.util.BitArray
A packed array of booleans.
Constructor Summary | |
BitArray(boolean[] bits)
Create a BitArray whose bits are those of the given array of Booleans. |
|
BitArray(int length)
Creates a BitArray of the specified size, initialized to zeros. |
|
BitArray(int length,
byte[] a)
Creates a BitArray of the specified size, initialized from the specified byte array. |
Method Summary | |
Object |
clone()
|
boolean |
equals(Object obj)
|
boolean |
get(int index)
Returns the indexed bit in this BitArray. |
int |
hashCode()
Returns a hash code value for this bit array. |
int |
length()
Returns the length of this BitArray. |
void |
set(int index,
boolean value)
Sets the indexed bit in this BitArray. |
boolean[] |
toBooleanArray()
Return a boolean array with the same bit values a this BitArray. |
byte[] |
toByteArray()
Returns a Byte array containing the contents of this BitArray. |
String |
toString()
Returns a string representation of this BitArray. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BitArray(int length) throws IllegalArgumentException
public BitArray(int length, byte[] a) throws IllegalArgumentException
public BitArray(boolean[] bits)
Method Detail |
public boolean get(int index) throws ArrayIndexOutOfBoundsException
public void set(int index, boolean value) throws ArrayIndexOutOfBoundsException
public int length()
public byte[] toByteArray()
public boolean equals(Object obj)
public boolean[] toBooleanArray()
public int hashCode()
public Object clone()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |