| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.doubles |
Provides type-specific classes for double elements or keys.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDoubleList
An abstract class providing basic methods for lists implementing a type-specific list interface.
|
static class |
AbstractDoubleList.DoubleSubList
A class implementing a sublist view.
|
class |
DoubleArrayList
A type-specific array-based list; provides some additional methods that use polymorphism to avoid (un)boxing.
|
static class |
DoubleLists.EmptyList
An immutable class representing an empty type-specific list.
|
static class |
DoubleLists.Singleton
An immutable class representing a type-specific singleton list.
|
static class |
DoubleLists.SynchronizedList
A synchronized wrapper class for lists.
|
static class |
DoubleLists.SynchronizedRandomAccessList
A synchronized wrapper class for random-access lists.
|
static class |
DoubleLists.UnmodifiableList
An unmodifiable wrapper class for lists.
|
static class |
DoubleLists.UnmodifiableRandomAccessList
An unmodifiable wrapper class for random-access lists.
|
| Modifier and Type | Field and Description |
|---|---|
protected DoubleList |
AbstractDoubleList.DoubleSubList.l
The list this sublist restricts.
|
protected DoubleList |
DoubleLists.SynchronizedList.list |
protected DoubleList |
DoubleLists.UnmodifiableList.list |
| Modifier and Type | Method and Description |
|---|---|
static DoubleList |
DoubleIterators.pour(DoubleIterator i)
Pours an iterator, returning a type-specific list.
|
static DoubleList |
DoubleIterators.pour(DoubleIterator i,
int max)
Pours an iterator, returning a type-specific list, with a limit on the number of elements.
|
static DoubleList |
DoubleLists.shuffle(DoubleList l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static DoubleList |
DoubleLists.singleton(double element)
Returns a type-specific immutable list containing only the specified element.
|
static DoubleList |
DoubleLists.singleton(Object element)
Returns a type-specific immutable list containing only the specified element.
|
DoubleList |
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. |
DoubleList |
AbstractDoubleList.subList(int from,
int to) |
DoubleList |
AbstractDoubleList.DoubleSubList.subList(int from,
int to) |
DoubleList |
DoubleLists.EmptyList.subList(int from,
int to) |
DoubleList |
DoubleLists.Singleton.subList(int from,
int to) |
DoubleList |
DoubleLists.SynchronizedList.subList(int from,
int to) |
DoubleList |
DoubleLists.SynchronizedRandomAccessList.subList(int from,
int to) |
DoubleList |
DoubleLists.UnmodifiableList.subList(int from,
int to) |
DoubleList |
DoubleLists.UnmodifiableRandomAccessList.subList(int from,
int to) |
static DoubleList |
DoubleLists.synchronize(DoubleList l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static DoubleList |
DoubleLists.synchronize(DoubleList l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static DoubleList |
DoubleLists.unmodifiable(DoubleList l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DoubleList.addAll(DoubleList c)
Appends all of the elements in the specified type-specific list to the end of this type-specific list (optional operation).
|
boolean |
AbstractDoubleList.addAll(DoubleList l)
Appends all of the elements in the specified type-specific list to the end of this type-specific list (optional operation).
|
boolean |
DoubleLists.EmptyList.addAll(DoubleList c) |
boolean |
DoubleLists.Singleton.addAll(DoubleList c) |
boolean |
DoubleLists.SynchronizedList.addAll(DoubleList l) |
boolean |
DoubleLists.UnmodifiableList.addAll(DoubleList l) |
boolean |
DoubleArrayList.addAll(int index,
DoubleList l) |
boolean |
DoubleList.addAll(int index,
DoubleList c)
Inserts all of the elements in the specified type-specific list into this type-specific list at the specified position (optional operation).
|
boolean |
AbstractDoubleList.addAll(int index,
DoubleList l)
Inserts all of the elements in the specified type-specific list into this type-specific list at the specified position (optional operation).
|
boolean |
AbstractDoubleList.DoubleSubList.addAll(int index,
DoubleList l) |
boolean |
DoubleLists.EmptyList.addAll(int i,
DoubleList c) |
boolean |
DoubleLists.Singleton.addAll(int i,
DoubleList c) |
boolean |
DoubleLists.SynchronizedList.addAll(int index,
DoubleList l) |
boolean |
DoubleLists.UnmodifiableList.addAll(int index,
DoubleList l) |
static DoubleBigList |
DoubleBigLists.asBigList(DoubleList list)
Returns a big list backed by the specified list.
|
static DoubleList |
DoubleLists.shuffle(DoubleList l,
Random random)
Shuffles the specified list using the specified pseudorandom number generator.
|
static DoubleList |
DoubleLists.synchronize(DoubleList l)
Returns a synchronized type-specific list backed by the given type-specific list.
|
static DoubleList |
DoubleLists.synchronize(DoubleList l,
Object sync)
Returns a synchronized type-specific list backed by the given type-specific list, using an assigned object to synchronize.
|
static DoubleList |
DoubleLists.unmodifiable(DoubleList l)
Returns an unmodifiable type-specific list backed by the given type-specific list.
|
| Constructor and Description |
|---|
DoubleArrayList(DoubleList l)
Creates a new array list and fills it with a given type-specific list.
|
DoubleSubList(DoubleList l,
int from,
int to) |
ListBigList(DoubleList list) |
SynchronizedList(DoubleList l) |
SynchronizedList(DoubleList l,
Object sync) |
SynchronizedRandomAccessList(DoubleList l) |
SynchronizedRandomAccessList(DoubleList l,
Object sync) |
UnmodifiableList(DoubleList l) |
UnmodifiableRandomAccessList(DoubleList l) |
Copyright © 2020. All rights reserved.