Package org.yamcs.studio.data.vtype
Class ListBoolean
java.lang.Object
org.yamcs.studio.data.vtype.ListBoolean
- Direct Known Subclasses:
ArrayBoolean
An ordered collection of
boolean
s. Since in Java Boolean does not inherit from Number, ListBoolean does not
inherit from ListNumber.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract boolean
getBoolean
(int index) Returns the element at the specified position in this list.int
hashCode()
abstract void
setBoolean
(int index, boolean value) Changes the element at the specified position.abstract int
size()
Returns the number of elements in the collection.
-
Constructor Details
-
ListBoolean
public ListBoolean()
-
-
Method Details
-
getBoolean
public abstract boolean getBoolean(int index) Returns the element at the specified position in this list.- Parameters:
index
- position of the element to return- Returns:
- the element at the specified position in this list
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size()
)
-
setBoolean
public abstract void setBoolean(int index, boolean value) Changes the element at the specified position.- Parameters:
index
- position of the element to changevalue
- the new value- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= size()
)
-
size
public abstract int size()Returns the number of elements in the collection. -
equals
-
hashCode
public int hashCode()
-