|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
it.unimi.dsi.fastutil.booleans.AbstractBooleanList
it.unimi.dsi.fastutil.booleans.AbstractBooleanList.BooleanSubList
public static class AbstractBooleanList.BooleanSubList
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanList |
|---|
AbstractBooleanList.BooleanSubList |
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AbstractBooleanList.BooleanSubList(BooleanList l,
int from,
int to)
|
|
| Method Summary | |
|---|---|
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)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
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. |
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanList |
|---|
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, toString |
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection |
|---|
add, booleanIterator, contains, containsAll, containsAll, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toBooleanArray, toBooleanArray |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection |
|---|
booleanIterator, containsAll, removeAll, retainAll, toArray, toArray, toBooleanArray, toBooleanArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractBooleanList.BooleanSubList(BooleanList l,
int from,
int to)
| Method Detail |
|---|
public boolean add(boolean k)
add in interface BooleanCollectionadd 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 AbstractBooleanCollectionpublic int size()
size in interface Collection<Boolean>size in interface List<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)
BooleanList
listIterator in interface BooleanListlistIterator in interface List<Boolean>listIterator in class AbstractBooleanListBooleanList.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 AbstractBooleanList
public boolean addAll(int index,
BooleanCollection c)
AbstractBooleanList
addAll in interface BooleanListaddAll in class AbstractBooleanListList.add(int,Object)
public boolean addAll(int index,
BooleanList l)
AbstractBooleanList
addAll in interface BooleanListaddAll in class AbstractBooleanListList.add(int,Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||