org.apache.commons.collections.primitives
Class RandomAccessBooleanList.RandomAccessBooleanSubList
java.lang.Object
org.apache.commons.collections.primitives.AbstractBooleanCollection
org.apache.commons.collections.primitives.RandomAccessBooleanList
org.apache.commons.collections.primitives.RandomAccessBooleanList.RandomAccessBooleanSubList
- All Implemented Interfaces:
- BooleanCollection, BooleanList
- Enclosing class:
- RandomAccessBooleanList
protected static class RandomAccessBooleanList.RandomAccessBooleanSubList
- extends RandomAccessBooleanList
- implements BooleanList
Method Summary |
void |
add(int index,
boolean element)
Unsupported in this implementation. |
boolean |
get(int index)
Returns the value of the element at the specified position
within me. |
boolean |
removeElementAt(int index)
Unsupported in this implementation. |
boolean |
set(int index,
boolean element)
Unsupported in this implementation. |
int |
size()
Returns the number of elements I contain. |
Methods inherited from class org.apache.commons.collections.primitives.RandomAccessBooleanList |
add, addAll, equals, getModCount, hashCode, incrModCount, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
get
public boolean get(int index)
- Description copied from interface:
BooleanList
- Returns the value of the element at the specified position
within me.
- Specified by:
get
in interface BooleanList
- Specified by:
get
in class RandomAccessBooleanList
- Parameters:
index
- the index of the element to return
- Returns:
- the value of the element at the specified position
removeElementAt
public boolean removeElementAt(int index)
- Description copied from class:
RandomAccessBooleanList
- Unsupported in this implementation.
- Specified by:
removeElementAt
in interface BooleanList
- Overrides:
removeElementAt
in class RandomAccessBooleanList
- Parameters:
index
- the index of the element to remove
- Returns:
- the value of the element that was removed
set
public boolean set(int index,
boolean element)
- Description copied from class:
RandomAccessBooleanList
- Unsupported in this implementation.
- Specified by:
set
in interface BooleanList
- Overrides:
set
in class RandomAccessBooleanList
- Parameters:
index
- the index of the element to changeelement
- the value to be stored at the specified position
- Returns:
- the value previously stored at the specified position
add
public void add(int index,
boolean element)
- Description copied from class:
RandomAccessBooleanList
- Unsupported in this implementation.
- Specified by:
add
in interface BooleanList
- Overrides:
add
in class RandomAccessBooleanList
- Parameters:
index
- the index at which to insert the elementelement
- the value to insert
size
public int size()
- Description copied from interface:
BooleanCollection
- Returns the number of elements I contain.
- Specified by:
size
in interface BooleanCollection
- Specified by:
size
in class RandomAccessBooleanList
- Returns:
- the number of elements I contain
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.