public abstract class ListBoolean extends Object
booleans. Since in Java Boolean does
not inherit from Number, ListBoolean does not inherit from ListNumber.| Constructor and Description |
|---|
ListBoolean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
public abstract boolean getBoolean(int index)
index - position of the element to returnIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())public abstract void setBoolean(int index,
boolean value)
index - position of the element to changevalue - the new valueIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())public abstract int size()
Copyright © 2015. All rights reserved.