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