|
||||||||||
| 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
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanList |
AbstractBooleanList.BooleanSubList |
| 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 c)
|
void |
addElements(int index,
boolean[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
BooleanListIterator |
booleanListIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
BooleanList |
booleanSubList(int from,
int to)
|
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. |
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 |
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()
|
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanList |
add, addAll, addAll, addAll, addElements, booleanIterator, booleanListIterator, compareTo, contains, equals, get, hashCode, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekBoolean, pop, popBoolean, push, push, remove, set, size, subList, top, topBoolean, toString |
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection |
add, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, 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, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection |
containsAll, removeAll, retainAll, toArray, toBooleanArray, toBooleanArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Constructor Detail |
public AbstractBooleanList.BooleanSubList(BooleanList l,
int from,
int to)
| Method Detail |
public boolean add(boolean k)
add in interface BooleanCollectionadd in class AbstractBooleanList
public void add(int index,
boolean k)
add in interface BooleanListadd in class AbstractBooleanList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractBooleanList
public boolean addAll(int index,
BooleanCollection c)
AbstractBooleanList
addAll in interface BooleanListaddAll in class AbstractBooleanList
public boolean addAll(int index,
BooleanList l)
AbstractBooleanList
addAll in interface BooleanListaddAll in class AbstractBooleanListpublic boolean getBoolean(int index)
getBoolean in interface BooleanListList.get(int)public boolean removeBoolean(int index)
removeBoolean in interface BooleanListremoveBoolean in class AbstractBooleanListpublic 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 AbstractBooleanList
public boolean set(int index,
boolean k)
set in interface BooleanListset in class AbstractBooleanListpublic void clear()
clear in interface Listclear in class AbstractBooleanCollectionpublic int size()
size in interface List
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 booleanListIterator(int index)
BooleanListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
booleanListIterator in interface BooleanListbooleanListIterator in class AbstractBooleanList
public BooleanList booleanSubList(int from,
int to)
booleanSubList in interface BooleanListbooleanSubList in class AbstractBooleanList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||