public static class AbstractBooleanList.BooleanSubList extends AbstractBooleanList implements Serializable
AbstractBooleanList.BooleanSubList| Constructor and Description |
|---|
AbstractBooleanList.BooleanSubList(BooleanList l,
int from,
int to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean k) |
void |
add(int index,
boolean k) |
boolean |
addAll(int index,
BooleanCollection c)
Delegates to a more generic method.
|
boolean |
addAll(int index,
BooleanList l)
Delegates to a more generic method.
|
boolean |
addAll(int index,
Collection<? extends Boolean> c) |
void |
addElements(int index,
boolean[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one.
|
void |
clear() |
boolean |
getBoolean(int index) |
void |
getElements(int from,
boolean[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one.
|
BooleanListIterator |
listIterator(int index)
Returns a type-specific list iterator on the list starting at a given index.
|
boolean |
rem(boolean k)
|
boolean |
remove(Object o)
Delegates to
rem(). |
boolean |
removeBoolean(int index) |
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one.
|
boolean |
set(int index,
boolean k) |
int |
size() |
BooleanList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index
from, inclusive, to the index to, exclusive. |
add, addAll, addAll, addAll, addElements, booleanListIterator, booleanListIterator, booleanSubList, compareTo, contains, equals, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekBoolean, pop, popBoolean, push, push, remove, set, size, top, topBoolean, toStringadd, booleanIterator, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toBooleanArray, toBooleanArrayadd, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArraybooleanIterator, containsAll, removeAll, retainAll, toArray, toArray, toBooleanArray, toBooleanArraypublic AbstractBooleanList.BooleanSubList(BooleanList l, int from, int to)
public boolean add(boolean k)
add in interface BooleanCollectionadd in interface BooleanListadd in class AbstractBooleanListCollection.add(Object)public void add(int index,
boolean k)
add in interface BooleanListadd in class AbstractBooleanListList.add(int,Object)public boolean addAll(int index,
Collection<? extends Boolean> c)
addAll in interface List<Boolean>addAll in class AbstractBooleanListpublic boolean getBoolean(int index)
getBoolean in interface BooleanListList.get(int)public boolean removeBoolean(int index)
removeBoolean in interface BooleanListremoveBoolean in class AbstractBooleanListList.remove(int)public boolean set(int index,
boolean k)
set in interface BooleanListset in class AbstractBooleanListList.set(int,Object)public void clear()
clear in interface Collection<Boolean>clear in interface List<Boolean>clear in class AbstractCollection<Boolean>public int size()
size in interface Collection<Boolean>size in interface List<Boolean>size in class AbstractCollection<Boolean>public void getElements(int from,
boolean[] a,
int offset,
int length)
AbstractBooleanListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface BooleanListgetElements in class AbstractBooleanListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.public void removeElements(int from,
int to)
AbstractBooleanListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface BooleanListremoveElements in class AbstractBooleanListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(int index,
boolean[] a,
int offset,
int length)
AbstractBooleanListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface BooleanListaddElements in class AbstractBooleanListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public BooleanListIterator listIterator(int index)
BooleanListlistIterator in interface BooleanListlistIterator in interface List<Boolean>listIterator in class AbstractBooleanListList.listIterator(int)public BooleanList subList(int from, int to)
BooleanListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface BooleanListsubList in interface List<Boolean>subList in class AbstractBooleanListList.subList(int,int)public boolean rem(boolean k)
BooleanCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().rem in interface BooleanCollectionrem in class AbstractBooleanListCollection.remove(Object)public boolean remove(Object o)
AbstractBooleanListrem().remove in interface Collection<Boolean>remove in interface List<Boolean>remove in class AbstractBooleanListpublic boolean addAll(int index,
BooleanCollection c)
AbstractBooleanListaddAll in interface BooleanListaddAll in class AbstractBooleanListList.add(int,Object)public boolean addAll(int index,
BooleanList l)
AbstractBooleanListaddAll in interface BooleanListaddAll in class AbstractBooleanListList.add(int,Object)