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