|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<java.lang.Boolean>
it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList
it.unimi.dsi.fastutil.booleans.BooleanBigLists.ListBigList
public static class BooleanBigLists.ListBigList
A class exposing a list as a big list.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList |
|---|
AbstractBooleanBigList.BooleanSubList |
| Method Summary | ||
|---|---|---|
boolean |
add(boolean key)
|
|
void |
add(long index,
boolean key)
|
|
boolean |
addAll(BooleanBigList c)
|
|
boolean |
addAll(BooleanCollection c)
Adds all elements of the given type-specific collection to this collection. |
|
boolean |
addAll(java.util.Collection<? extends java.lang.Boolean> c)
Delegates to a more generic method. |
|
boolean |
addAll(long index,
BooleanBigList c)
Delegates to a more generic method. |
|
boolean |
addAll(long index,
BooleanCollection c)
Delegates to a more generic method. |
|
boolean |
addAll(long index,
java.util.Collection<? extends java.lang.Boolean> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation). |
|
void |
clear()
|
|
boolean |
contains(boolean key)
|
|
boolean |
containsAll(BooleanCollection c)
Checks whether this collection contains all elements from the given type-specific collection. |
|
boolean |
containsAll(java.util.Collection<?> c)
Checks whether this collection contains all elements from the given collection. |
|
boolean |
getBoolean(long index)
|
|
int |
hashCode()
Returns the hash code for this big list, which is identical to List.hashCode(). |
|
long |
indexOf(boolean k)
|
|
boolean |
isEmpty()
Checks whether the stack is empty. |
|
BooleanBigListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection. |
|
long |
lastIndexOf(boolean k)
|
|
BooleanBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list. |
|
BooleanBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index. |
|
boolean |
removeAll(BooleanCollection c)
Remove from this collection all elements in the given type-specific collection. |
|
boolean |
removeAll(java.util.Collection<?> c)
Remove from this collection all elements in the given collection. |
|
boolean |
removeBoolean(long index)
|
|
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one. |
|
boolean |
retainAll(BooleanCollection c)
Retains in this collection only elements from the given type-specific collection. |
|
boolean |
retainAll(java.util.Collection<?> c)
Retains in this collection only elements from the given collection. |
|
boolean |
set(long index,
boolean k)
|
|
int |
size()
Deprecated. |
|
void |
size(long size)
Sets the size of this big list. |
|
long |
size64()
Returns the size of this data structure as a long. |
|
BooleanBigList |
subList(long from,
long to)
Returns a type-specific view of the portion of this type-specific big list from the index from, inclusive, to the index to, exclusive. |
|
|
toArray(T[] a)
Returns an containing the items of this collection; the runtime type of the returned array is that of the specified array. |
|
boolean[] |
toBooleanArray()
Returns a primitive type array containing the items of this collection. |
|
boolean[] |
toBooleanArray(boolean[] a)
Returns a primitive type array containing the items of this collection. |
|
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList |
|---|
add, addAll, addElements, addElements, compareTo, equals, get, getBoolean, getElements, indexOf, lastIndexOf, listIterator, peek, peekBoolean, pop, popBoolean, push, push, rem, remove, remove, removeBoolean, set, set, size, top, topBoolean, toString |
| Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection |
|---|
add, booleanIterator, contains, rem, remove, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection |
|---|
booleanIterator, toArray |
| Methods inherited from interface java.util.Collection |
|---|
add, contains, remove, toArray |
| Method Detail |
|---|
public long size64()
Size64
size64 in interface Size64@Deprecated public int size()
Size64Integer.MAX_VALUE.
size in interface Size64size in interface java.util.Collection<java.lang.Boolean>size in class AbstractBooleanBigListInteger.MAX_VALUE.Collection.size()public void size(long size)
BigListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface BigList<java.lang.Boolean>size in class AbstractBooleanBigListsize - the new size.public BooleanBigListIterator iterator()
BooleanCollectionNote that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
iterator in interface BooleanBigListiterator in interface BooleanCollectioniterator in interface BooleanIterableiterator in interface java.lang.Iterable<java.lang.Boolean>iterator in interface java.util.Collection<java.lang.Boolean>iterator in class AbstractBooleanBigListList.iterator()public BooleanBigListIterator listIterator()
BooleanBigList
listIterator in interface BigList<java.lang.Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListList.listIterator()
public boolean addAll(long index,
java.util.Collection<? extends java.lang.Boolean> c)
BigList
addAll in interface BigList<java.lang.Boolean>addAll in class AbstractBooleanBigListindex - index at which to insert the first element from the specified collection.c - collection containing elements to be added to this big list.
true if this big list changed as a result of the callList.addAll(int, Collection)public BooleanBigListIterator listIterator(long index)
BooleanBigList
listIterator in interface BigList<java.lang.Boolean>listIterator in interface BooleanBigListlistIterator in class AbstractBooleanBigListindex - index of first element to be returned from the big-list iterator.
BigList.listIterator(long)
public BooleanBigList subList(long from,
long to)
BooleanBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<java.lang.Boolean>subList in interface BooleanBigListsubList in class AbstractBooleanBigListfrom - the starting element (inclusive).to - the ending element (exclusive).
BigList.subList(long,long)public boolean contains(boolean key)
contains in interface BooleanCollectioncontains in class AbstractBooleanBigListCollection.contains(Object)public boolean[] toBooleanArray()
BooleanCollection
toBooleanArray in interface BooleanCollectiontoBooleanArray in class AbstractBooleanCollectionCollection.toArray()
public void removeElements(long from,
long to)
AbstractBooleanBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface BooleanBigListremoveElements in class AbstractBooleanBigListfrom - the start index (inclusive).to - the end index (exclusive).public boolean[] toBooleanArray(boolean[] a)
BooleanCollectionNote that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
toBooleanArray in interface BooleanCollectiontoBooleanArray in class AbstractBooleanCollectiona - if this array is big enough, it will be used to store this collection.
Collection.toArray(Object[])
public void add(long index,
boolean key)
add in interface BooleanBigListadd in class AbstractBooleanBigListList.add(int,Object)
public boolean addAll(long index,
BooleanCollection c)
AbstractBooleanBigList
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)
public boolean addAll(long index,
BooleanBigList c)
AbstractBooleanBigList
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean add(boolean key)
add in interface BooleanCollectionadd in class AbstractBooleanBigListCollection.add(Object)public boolean addAll(BooleanBigList c)
addAll in interface BooleanBigListaddAll in class AbstractBooleanBigListList.addAll(int,java.util.Collection)public boolean getBoolean(long index)
getBoolean in interface BooleanBigListBigList.get(long)public long indexOf(boolean k)
indexOf in interface BooleanBigListindexOf in class AbstractBooleanBigListBigList.indexOf(Object)public long lastIndexOf(boolean k)
lastIndexOf in interface BooleanBigListlastIndexOf in class AbstractBooleanBigListBigList.lastIndexOf(Object)public boolean removeBoolean(long index)
removeBoolean in interface BooleanBigListremoveBoolean in class AbstractBooleanBigListBigList.remove(long)
public boolean set(long index,
boolean k)
set in interface BooleanBigListset in class AbstractBooleanBigListBigList.set(long,Object)public boolean addAll(BooleanCollection c)
AbstractBooleanCollection
addAll in interface BooleanCollectionaddAll in class AbstractBooleanBigListc - a type-specific collection.
true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean containsAll(BooleanCollection c)
AbstractBooleanCollection
containsAll in interface BooleanCollectioncontainsAll in class AbstractBooleanCollectionc - a type-specific collection.
true if this collection contains all elements of the argument.Collection.containsAll(Collection)public boolean removeAll(BooleanCollection c)
AbstractBooleanCollection
removeAll in interface BooleanCollectionremoveAll in class AbstractBooleanCollectionc - a type-specific collection.
true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(BooleanCollection c)
AbstractBooleanCollection
retainAll in interface BooleanCollectionretainAll in class AbstractBooleanCollectionc - a type-specific collection.
true if this collection changed as a result of the call.Collection.retainAll(Collection)public boolean isEmpty()
Stack
isEmpty in interface Stack<java.lang.Boolean>isEmpty in interface java.util.Collection<java.lang.Boolean>isEmpty in class AbstractBooleanCollectionpublic <T> T[] toArray(T[] a)
BooleanCollectionWarning: Note that, contrarily to Collection.toArray(Object[]), this
methods just writes all elements of this collection: no special
value will be added after the last one.
toArray in interface BooleanCollectiontoArray in interface java.util.Collection<java.lang.Boolean>toArray in class AbstractBooleanCollectiona - if this array is big enough, it will be used to store this collection.
Collection.toArray(Object[])public boolean containsAll(java.util.Collection<?> c)
AbstractBooleanCollection
containsAll in interface java.util.Collection<java.lang.Boolean>containsAll in class AbstractBooleanCollectionc - a collection.
true if this collection contains all elements of the argument.public boolean addAll(java.util.Collection<? extends java.lang.Boolean> c)
AbstractBooleanBigList
addAll in interface java.util.Collection<java.lang.Boolean>addAll in class AbstractBooleanBigListc - a collection.
true if this collection changed as a result of the call.public boolean removeAll(java.util.Collection<?> c)
AbstractBooleanCollection
removeAll in interface java.util.Collection<java.lang.Boolean>removeAll in class AbstractBooleanCollectionc - a collection.
true if this collection changed as a result of the call.public boolean retainAll(java.util.Collection<?> c)
AbstractBooleanCollection
retainAll in interface java.util.Collection<java.lang.Boolean>retainAll in class AbstractBooleanCollectionc - a collection.
true if this collection changed as a result of the call.public void clear()
clear in interface java.util.Collection<java.lang.Boolean>clear in class java.util.AbstractCollection<java.lang.Boolean>public int hashCode()
AbstractBooleanBigListList.hashCode().
hashCode in interface java.util.Collection<java.lang.Boolean>hashCode in class AbstractBooleanBigList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||