|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.doubles.AbstractDoubleCollection
it.unimi.dsi.fastutil.doubles.DoubleCollections.EmptyCollection
it.unimi.dsi.fastutil.doubles.DoubleLists.EmptyList
public static class DoubleLists.EmptyList
An immutable class representing an empty type-specific list.
This class may be useful to implement your own in case you subclass a type-specific list.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
boolean |
add(double k)
|
boolean |
add(Double k)
Delegates to the corresponding type-specific method. |
void |
add(int index,
double k)
|
void |
add(int index,
Double k)
|
boolean |
addAll(Collection<? extends Double> c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(DoubleCollection c)
Adds all elements of the given type-specific collection to this collection. |
boolean |
addAll(DoubleList c)
|
boolean |
addAll(int i,
Collection<? extends Double> c)
|
boolean |
addAll(int i,
DoubleCollection c)
|
boolean |
addAll(int i,
DoubleList c)
|
void |
addElements(int index,
double[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
double[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
Object |
clone()
|
int |
compareTo(List<? extends Double> o)
|
DoubleIterator |
doubleIterator()
Deprecated. |
DoubleListIterator |
doubleListIterator()
Deprecated. |
DoubleListIterator |
doubleListIterator(int i)
Deprecated. |
DoubleList |
doubleSubList(int from,
int to)
Deprecated. |
Double |
get(int i)
|
double |
getDouble(int i)
|
void |
getElements(int from,
double[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
int |
indexOf(double k)
|
int |
indexOf(Object k)
|
int |
lastIndexOf(double k)
|
int |
lastIndexOf(Object k)
|
DoubleListIterator |
listIterator()
Returns a type-specific list iterator on the list. |
DoubleListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
Double |
remove(int k)
|
boolean |
removeAll(Collection<?> c)
Remove from this collection all elements in the given collection. |
double |
removeDouble(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
double |
set(int index,
double k)
|
Double |
set(int index,
Double k)
|
void |
size(int s)
Sets the size of this list. |
DoubleList |
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.doubles.DoubleCollections.EmptyCollection |
|---|
clear, contains, containsAll, equals, hashCode, iterator, rem, removeAll, retainAll, size, toArray, toDoubleArray, toDoubleArray |
| Methods inherited from class it.unimi.dsi.fastutil.doubles.AbstractDoubleCollection |
|---|
contains, containsAll, isEmpty, rem, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleList |
|---|
iterator |
| Methods inherited from interface java.util.List |
|---|
clear, contains, containsAll, equals, hashCode, isEmpty, remove, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection |
|---|
contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArray |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public void add(int index,
double k)
add in interface DoubleListList.add(int,Object)public boolean add(double k)
add in interface DoubleCollectionadd in class DoubleCollections.EmptyCollectionCollection.add(Object)public double removeDouble(int i)
removeDouble in interface DoubleListList.remove(int)
public double set(int index,
double k)
set in interface DoubleListList.set(int,Object)public int indexOf(double k)
indexOf in interface DoubleListList.indexOf(Object)public int lastIndexOf(double k)
lastIndexOf in interface DoubleListList.lastIndexOf(Object)public boolean addAll(Collection<? extends Double> c)
AbstractDoubleCollection
addAll in interface Collection<Double>addAll in interface List<Double>addAll in class AbstractDoubleCollectionc - a collection.
true if this collection changed as a result of the call.
public boolean addAll(int i,
Collection<? extends Double> c)
addAll in interface List<Double>public boolean removeAll(Collection<?> c)
AbstractDoubleCollection
removeAll in interface Collection<Double>removeAll in interface List<Double>removeAll in class AbstractDoubleCollectionc - a collection.
true if this collection changed as a result of the call.public Double get(int i)
get in interface List<Double>public boolean addAll(DoubleCollection c)
AbstractDoubleCollection
addAll in interface DoubleCollectionaddAll in class DoubleCollections.EmptyCollectionc - a type-specific collection.
true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean addAll(DoubleList c)
addAll in interface DoubleListList.add(int,Object)
public boolean addAll(int i,
DoubleCollection c)
addAll in interface DoubleListList.add(int,Object)
public boolean addAll(int i,
DoubleList c)
addAll in interface DoubleListList.add(int,Object)
public void add(int index,
Double k)
add in interface List<Double>public boolean add(Double k)
AbstractDoubleCollection
add in interface Collection<Double>add in interface List<Double>add in class AbstractDoubleCollection
public Double set(int index,
Double k)
set in interface List<Double>public double getDouble(int i)
getDouble in interface DoubleListList.get(int)public Double remove(int k)
remove in interface List<Double>public int indexOf(Object k)
indexOf in interface List<Double>public int lastIndexOf(Object k)
lastIndexOf in interface List<Double>@Deprecated public DoubleIterator doubleIterator()
AbstractDoubleCollection
doubleIterator in interface DoubleCollectiondoubleIterator in class AbstractDoubleCollectionDoubleCollection.iterator()public DoubleListIterator listIterator()
DoubleList
listIterator in interface DoubleListlistIterator in interface List<Double>DoubleList.listIterator()public DoubleListIterator listIterator(int i)
DoubleList
listIterator in interface DoubleListlistIterator in interface List<Double>DoubleList.listIterator(int)@Deprecated public DoubleListIterator doubleListIterator()
DoubleList
doubleListIterator in interface DoubleListDoubleList.listIterator()@Deprecated public DoubleListIterator doubleListIterator(int i)
DoubleList
doubleListIterator in interface DoubleListDoubleList.listIterator(int)
public DoubleList subList(int from,
int to)
DoubleListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface DoubleListsubList in interface List<Double>List.subList(int,int)
@Deprecated
public DoubleList doubleSubList(int from,
int to)
DoubleListfrom, inclusive, to the index to, exclusive.
doubleSubList in interface DoubleListList.subList(int,int)
public void getElements(int from,
double[] a,
int offset,
int length)
DoubleList
getElements in interface DoubleListfrom - 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)
DoubleList
removeElements in interface DoubleListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
double[] a,
int offset,
int length)
DoubleList
addElements in interface DoubleListindex - 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 void addElements(int index,
double[] a)
DoubleList
addElements in interface DoubleListindex - the index at which to add elements.a - the array containing the elements.public void size(int s)
DoubleListIf 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 DoubleLists - the new size.public int compareTo(List<? extends Double> o)
compareTo in interface Comparable<List<? extends Double>>public Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||