Package it.unimi.dsi.fastutil.doubles
Class DoubleBigLists.SynchronizedBigList
java.lang.Object
it.unimi.dsi.fastutil.doubles.DoubleBigLists.SynchronizedBigList
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Double>,DoubleBigList,it.unimi.dsi.fastutil.doubles.DoubleCollection,it.unimi.dsi.fastutil.doubles.DoubleIterable,it.unimi.dsi.fastutil.Size64,Serializable,Comparable<it.unimi.dsi.fastutil.BigList<? extends Double>>,Iterable<Double>,Collection<Double>
- Enclosing class:
DoubleBigLists
public static class DoubleBigLists.SynchronizedBigList
extends Object
implements DoubleBigList, Serializable
A synchronized wrapper class for big lists.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.doubles.DoubleCollectionprotected final DoubleBigListprotected final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSynchronizedBigList(DoubleBigList l, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(double arg0) voidadd(long i, double k) Inserts the specified element at the specified position in this type-specific big list (optional operation).voidDeprecated.Please use the corresponding type-specific method instead.booleanDeprecated.booleanaddAll(long index, DoubleBigList l) Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).booleanaddAll(long index, it.unimi.dsi.fastutil.doubles.DoubleCollection c) Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).booleanaddAll(long index, Collection<? extends Double> c) booleanAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).booleanaddAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanaddAll(Collection<? extends Double> arg0) voidaddElements(long index, double[][] a) Add (hopefully quickly) elements to this type-specific big list.voidaddElements(long index, double[][] a, long offset, long length) Add (hopefully quickly) elements to this type-specific big list.voidclear()intbooleancontains(double arg0) booleanDeprecated.booleancontainsAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleancontainsAll(Collection<?> arg0) it.unimi.dsi.fastutil.doubles.DoubleIteratorit.unimi.dsi.fastutil.doubles.DoubleSpliteratorbooleanvoidforEach(DoubleConsumer arg0) get(long i) Deprecated.Please use the corresponding type-specific method instead.doublegetDouble(long i) Returns the element at the specified position.voidgetElements(long from, double[][] a, long offset, long length) Copies (hopefully quickly) elements of this type-specific big list into the given big array.inthashCode()longindexOf(double k) Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.longDeprecated.Please use the corresponding type-specific method instead.booleanisEmpty()it.unimi.dsi.fastutil.doubles.DoubleBigListIteratoriterator()Returns a type-specific iterator on the elements of this list.longlastIndexOf(double k) Returns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.longDeprecated.Please use the corresponding type-specific method instead.it.unimi.dsi.fastutil.doubles.DoubleBigListIteratorReturns a type-specific big-list iterator on this type-specific big list.it.unimi.dsi.fastutil.doubles.DoubleBigListIteratorlistIterator(long i) Returns a type-specific list iterator on this type-specific big list starting at a given index.Deprecated.booleanrem(double arg0) remove(long i) Deprecated.Please use the corresponding type-specific method instead.booleanDeprecated.booleanremoveAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanremoveAll(Collection<?> arg0) doubleremoveDouble(long i) Removes the element at the specified position.voidremoveElements(long from, long to) Removes (hopefully quickly) elements of this type-specific big list.booleanremoveIf(DoublePredicate arg0) booleanretainAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) booleanretainAll(Collection<?> arg0) doubleset(long i, double k) Replaces the element at the specified position in this big list with the specified element (optional operation).Deprecated.Please use the corresponding type-specific method instead.intsize()voidsize(long size) Deprecated.longsize64()it.unimi.dsi.fastutil.doubles.DoubleSpliteratorstream()Deprecated.subList(long from, long to) Returns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.Object[]toArray()double[]toArray(double[] arg0) <T> T[]toArray(T[] arg0) double[]double[]toDoubleArray(double[] arg0) Deprecated.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.BigList
sizeMethods inherited from interface java.util.Collection
addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleBigList
addAll, addAll, getElements, setElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection
add, add, addAll, contains, contains, containsAll, doubleIterator, doubleParallelStream, doubleSpliterator, doubleStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toDoubleArray, toDoubleArrayMethods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleIterable
forEach, forEach, forEach
-
Field Details
-
list
-
collection
protected final it.unimi.dsi.fastutil.doubles.DoubleCollection collection -
sync
-
-
Constructor Details
-
SynchronizedBigList
-
SynchronizedBigList
-
-
Method Details
-
getDouble
public double getDouble(long i) Description copied from interface:DoubleBigListReturns the element at the specified position.- Specified by:
getDoublein interfaceDoubleBigList- See Also:
-
set
public double set(long i, double k) Description copied from interface:DoubleBigListReplaces the element at the specified position in this big list with the specified element (optional operation).- Specified by:
setin interfaceDoubleBigList- See Also:
-
add
public void add(long i, double k) Description copied from interface:DoubleBigListInserts the specified element at the specified position in this type-specific big list (optional operation).- Specified by:
addin interfaceDoubleBigList- See Also:
-
removeDouble
public double removeDouble(long i) Description copied from interface:DoubleBigListRemoves the element at the specified position.- Specified by:
removeDoublein interfaceDoubleBigList- See Also:
-
indexOf
public long indexOf(double k) Description copied from interface:DoubleBigListReturns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.- Specified by:
indexOfin interfaceDoubleBigList- See Also:
-
lastIndexOf
public long lastIndexOf(double k) Description copied from interface:DoubleBigListReturns the index of the last occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.- Specified by:
lastIndexOfin interfaceDoubleBigList- See Also:
-
addAll
- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.BigList<Double>
-
getElements
public void getElements(long from, double[][] a, long offset, long length) Description copied from interface:DoubleBigListCopies (hopefully quickly) elements of this type-specific big list into the given big array.- Specified by:
getElementsin interfaceDoubleBigList- Parameters:
from- the start index (inclusive).a- the destination big array.offset- the offset into the destination big array where to store the first element copied.length- the number of elements to be copied.
-
removeElements
public void removeElements(long from, long to) Description copied from interface:DoubleBigListRemoves (hopefully quickly) elements of this type-specific big list.- Specified by:
removeElementsin interfaceDoubleBigList- Parameters:
from- the start index (inclusive).to- the end index (exclusive).
-
addElements
public void addElements(long index, double[][] a, long offset, long length) Description copied from interface:DoubleBigListAdd (hopefully quickly) elements to this type-specific big list.- Specified by:
addElementsin interfaceDoubleBigList- Parameters:
index- the index at which to add elements.a- the big array containing the elements.offset- the offset of the first element to add.length- the number of elements to add.
-
addElements
public void addElements(long index, double[][] a) Description copied from interface:DoubleBigListAdd (hopefully quickly) elements to this type-specific big list.- Specified by:
addElementsin interfaceDoubleBigList- Parameters:
index- the index at which to add elements.a- the big array containing the elements.
-
size
Deprecated.- Specified by:
sizein interfaceit.unimi.dsi.fastutil.BigList<Double>
-
size64
public long size64()- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
iterator
public it.unimi.dsi.fastutil.doubles.DoubleBigListIterator iterator()Description copied from interface:DoubleBigListReturns a type-specific iterator on the elements of this list.- Specified by:
iteratorin interfaceCollection<Double>- Specified by:
iteratorin interfaceDoubleBigList- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable- Specified by:
iteratorin interfaceIterable<Double>- See Also:
-
listIterator
public it.unimi.dsi.fastutil.doubles.DoubleBigListIterator listIterator()Description copied from interface:DoubleBigListReturns a type-specific big-list iterator on this type-specific big list.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
listIteratorin interfaceDoubleBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.doubles.DoubleBigListIterator listIterator(long i) Description copied from interface:DoubleBigListReturns a type-specific list iterator on this type-specific big list starting at a given index.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
listIteratorin interfaceDoubleBigList- See Also:
-
subList
Description copied from interface:DoubleBigListReturns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.- Specified by:
subListin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
subListin interfaceDoubleBigList- See Also:
-
equals
- Specified by:
equalsin interfaceCollection<Double>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Double>
-
compareTo
- Specified by:
compareToin interfaceComparable<it.unimi.dsi.fastutil.BigList<? extends Double>>
-
addAll
public boolean addAll(long index, it.unimi.dsi.fastutil.doubles.DoubleCollection c) Description copied from interface:DoubleBigListInserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceDoubleBigList- See Also:
-
addAll
Description copied from interface:DoubleBigListInserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceDoubleBigList- See Also:
-
addAll
Description copied from interface:DoubleBigListAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).- Specified by:
addAllin interfaceDoubleBigList- See Also:
-
add
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
addin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
addin interfaceDoubleBigList
-
get
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
getin interfaceDoubleBigList
-
set
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
setin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
setin interfaceDoubleBigList
-
remove
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
removein interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
removein interfaceDoubleBigList
-
indexOf
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
indexOfin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
indexOfin interfaceDoubleBigList
-
lastIndexOf
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
lastIndexOfin interfaceit.unimi.dsi.fastutil.BigList<Double>- Specified by:
lastIndexOfin interfaceDoubleBigList
-
add
public boolean add(double arg0) - Specified by:
addin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
contains
public boolean contains(double arg0) - Specified by:
containsin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
rem
public boolean rem(double arg0) - Specified by:
remin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
size
public int size()- Specified by:
sizein interfaceCollection<Double>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Double>
-
toDoubleArray
public double[] toDoubleArray()- Specified by:
toDoubleArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
- Specified by:
toArrayin interfaceCollection<Double>
-
toDoubleArray
Deprecated.- Specified by:
toDoubleArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
public double[] toArray(double[] arg0) - Specified by:
toArrayin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
addAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
add
Deprecated.- Specified by:
addin interfaceCollection<Double>- Specified by:
addin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Double>- Specified by:
containsin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Double>- Specified by:
removein interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
doubleIterator
public it.unimi.dsi.fastutil.doubles.DoubleIterator doubleIterator()- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
doubleIteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
doubleSpliterator
public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
doubleSpliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
doubleStream
- Specified by:
doubleStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
doubleParallelStream
- Specified by:
doubleParallelStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
toArray
public <T> T[] toArray(T[] arg0) - Specified by:
toArrayin interfaceCollection<Double>
-
spliterator
public it.unimi.dsi.fastutil.doubles.DoubleSpliterator spliterator()- Specified by:
spliteratorin interfaceCollection<Double>- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection- Specified by:
spliteratorin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable- Specified by:
spliteratorin interfaceIterable<Double>
-
stream
Deprecated.- Specified by:
streamin interfaceCollection<Double>- Specified by:
streamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
parallelStream
Deprecated.- Specified by:
parallelStreamin interfaceCollection<Double>- Specified by:
parallelStreamin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
forEach
- Specified by:
forEachin interfaceit.unimi.dsi.fastutil.doubles.DoubleIterable
-
addAll
- Specified by:
addAllin interfaceCollection<Double>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Double>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Double>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Double>
-
removeIf
- Specified by:
removeIfin interfaceit.unimi.dsi.fastutil.doubles.DoubleCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Double>
-
toString
-