All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.BooleanArray
java.lang.Object
|
+----COM.objectspace.jgl.ArrayAdapter
|
+----COM.objectspace.jgl.BooleanArray
- public class BooleanArray
- extends ArrayAdapter
BooleanArray allows a native array of booleans to be accessed like a Container.
It is particularly useful for applying generic algorithms like Sorting.sort()
to a native array.
-
BooleanArray()
-
-
BooleanArray(boolean[])
-
-
BooleanArray(BooleanArray)
-
-
at(int)
- Return the boolean at the specified index as a Boolean object.
-
clone()
- Return a shallow copy of myself.
-
elements()
- Return an Enumeration to my components.
-
equals(BooleanArray)
- Return true if I contain the same items in the same order as
another BooleanArray.
-
equals(Object)
- Return true if I'm equal to a specified object.
-
finish()
- Return an iterator positioned immediately after my last item.
-
maxSize()
- Return the maximum number of objects that I can contain.
-
put(int, Object)
- Set the object at a specified index.
-
size()
- Return the number of objects that I contain.
-
start()
- Return an iterator positioned at my first item.
-
toString()
- Return a string that describes me.
BooleanArray
public BooleanArray()
BooleanArray
public BooleanArray(boolean array[])
BooleanArray
public BooleanArray(BooleanArray array)
clone
public synchronized Object clone()
- Return a shallow copy of myself.
- Overrides:
- clone in class ArrayAdapter
toString
public synchronized String toString()
- Return a string that describes me.
- Overrides:
- toString in class Object
equals
public boolean equals(Object object)
- Return true if I'm equal to a specified object.
- Parameters:
- object - The object to compare myself against.
- Returns:
- true if I'm equal to the specified object.
- Overrides:
- equals in class ArrayAdapter
equals
public synchronized boolean equals(BooleanArray object)
- Return true if I contain the same items in the same order as
another BooleanArray. Use equals() to compare the individual elements.
- Parameters:
- array - The BooleanArray to compare myself against.
- Returns:
- true if I'm equal to the specified object.
size
public int size()
- Return the number of objects that I contain.
- Overrides:
- size in class ArrayAdapter
maxSize
public int maxSize()
- Return the maximum number of objects that I can contain.
- Overrides:
- maxSize in class ArrayAdapter
elements
public synchronized Enumeration elements()
- Return an Enumeration to my components.
- Overrides:
- elements in class ArrayAdapter
start
public synchronized ForwardIterator start()
- Return an iterator positioned at my first item.
- Overrides:
- start in class ArrayAdapter
finish
public synchronized ForwardIterator finish()
- Return an iterator positioned immediately after my last item.
- Overrides:
- finish in class ArrayAdapter
at
public synchronized Object at(int index)
- Return the boolean at the specified index as a Boolean object.
- Parameters:
- index - The index.
- Overrides:
- at in class ArrayAdapter
put
public synchronized void put(int index,
Object object)
- Set the object at a specified index. The object must be a Boolean
- Parameters:
- index - The index.
- object - The object to place at the specified index.
- Throws: ClassCastException
- if object is not a Boolean
- Throws: IndexOutOfBoundsException
- if object is not a Boolean
- Overrides:
- put in class ArrayAdapter
All Packages Class Hierarchy This Package Previous Next Index