|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.BooleanList
public class BooleanList
A simplified List for boolean values. Only the bare number of methods needed by Jive have been implemented so far, so additional implementation work would be welcome.
The implementation uses an array for maximum speed. If the number of elements grows larger than capacity, the capacity will automatically grow.
Constructor Summary | |
---|---|
BooleanList()
Creates a new list of boolean values with a default capacity of 50. |
|
BooleanList(int initialCapacity)
Creates a new list of boolean values with a specified initial capacity. |
Method Summary | |
---|---|
void |
add(boolean value)
Adds a new boolean value to the end of the list. |
boolean |
get(int index)
Returns the boolean value at the specified index. |
int |
size()
Returns the number of elements in the list. |
boolean[] |
toArray()
Returns a new array containing the list elements. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanList()
public BooleanList(int initialCapacity)
initialCapacity
- a capacity to initialize the list with.Method Detail |
---|
public void add(boolean value)
public boolean get(int index)
index
- the index of the value to return.
public int size()
public boolean[] toArray()
public java.lang.String toString()
toString
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |