|
||||||||||
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 BooleanCollection
add
in class AbstractBooleanList
public void add(int index, boolean k)
add
in interface BooleanList
add
in class AbstractBooleanList
public boolean addAll(int index, Collection c)
addAll
in interface List
addAll
in class AbstractBooleanList
public boolean addAll(int index, BooleanCollection c)
AbstractBooleanList
addAll
in interface BooleanList
addAll
in class AbstractBooleanList
public boolean addAll(int index, BooleanList l)
AbstractBooleanList
addAll
in interface BooleanList
addAll
in class AbstractBooleanList
public boolean getBoolean(int index)
getBoolean
in interface BooleanList
List.get(int)
public boolean removeBoolean(int index)
removeBoolean
in interface BooleanList
removeBoolean
in class AbstractBooleanList
public boolean rem(boolean k)
BooleanCollection
remove()
, 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 BooleanCollection
rem
in class AbstractBooleanList
public boolean set(int index, boolean k)
set
in interface BooleanList
set
in class AbstractBooleanList
public void clear()
clear
in interface List
clear
in class AbstractBooleanCollection
public int size()
size
in interface List
public void getElements(int from, boolean[] a, int offset, int length)
AbstractBooleanList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements
in interface BooleanList
getElements
in class AbstractBooleanList
from
- 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)
AbstractBooleanList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements
in interface BooleanList
removeElements
in class AbstractBooleanList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, boolean[] a, int offset, int length)
AbstractBooleanList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements
in interface BooleanList
addElements
in class AbstractBooleanList
index
- 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)
BooleanList
The 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 BooleanList
booleanListIterator
in class AbstractBooleanList
public BooleanList booleanSubList(int from, int to)
booleanSubList
in interface BooleanList
booleanSubList
in class AbstractBooleanList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |