| Package | Description |
|---|---|
| it.unimi.dsi.fastutil.longs |
Provides type-specific classes for long elements or keys.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
LongList
A type-specific
List; provides some additional methods that use polymorphism to avoid (un)boxing. |
interface |
LongSet
A type-specific
Set; provides some additional methods that use polymorphism to avoid (un)boxing. |
interface |
LongSortedSet
A type-specific
SortedSet; provides some additional methods that use polymorphism to avoid (un)boxing. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractLong2ObjectSortedMap.KeySet
A wrapper exhibiting the keys of a map.
|
class |
AbstractLongCollection
An abstract class providing basic methods for collections implementing a type-specific interface.
|
class |
AbstractLongList
An abstract class providing basic methods for lists implementing a type-specific list interface.
|
static class |
AbstractLongList.LongSubList |
class |
AbstractLongSet
An abstract class providing basic methods for sets implementing a type-specific interface.
|
class |
AbstractLongSortedSet
An abstract class providing basic methods for sorted sets implementing a type-specific interface.
|
class |
LongArrayList
A type-specific array-based list; provides some additional methods that use polymorphism to avoid (un)boxing.
|
class |
LongArraySet
A simple, brute-force implementation of a set based on a backing array.
|
static class |
LongCollections.EmptyCollection
An immutable class representing an empty type-specific collection.
|
static class |
LongCollections.IterableCollection
A collection wrapper class for iterables.
|
static class |
LongCollections.SynchronizedCollection
A synchronized wrapper class for collections.
|
static class |
LongCollections.UnmodifiableCollection
An unmodifiable wrapper class for collections.
|
static class |
LongLists.EmptyList
An immutable class representing an empty type-specific list.
|
static class |
LongLists.Singleton
An immutable class representing a type-specific singleton list.
|
static class |
LongLists.SynchronizedList
A synchronized wrapper class for lists.
|
static class |
LongLists.UnmodifiableList
An unmodifiable wrapper class for lists.
|
static class |
LongSets.EmptySet
An immutable class representing the empty set and implementing a type-specific set interface.
|
static class |
LongSets.Singleton
An immutable class representing a type-specific singleton set.
|
static class |
LongSets.SynchronizedSet
A synchronized wrapper class for sets.
|
static class |
LongSets.UnmodifiableSet
An unmodifiable wrapper class for sets.
|
static class |
LongSortedSets.EmptySet
An immutable class representing the empty sorted set and implementing a type-specific set interface.
|
static class |
LongSortedSets.Singleton
A class representing a singleton sorted set.
|
static class |
LongSortedSets.SynchronizedSortedSet
A synchronized wrapper class for sorted sets.
|
static class |
LongSortedSets.UnmodifiableSortedSet
An unmodifiable wrapper class for sorted sets.
|
| Modifier and Type | Field and Description |
|---|---|
protected LongCollection |
LongCollections.SynchronizedCollection.collection |
protected LongCollection |
LongCollections.UnmodifiableCollection.collection |
| Modifier and Type | Method and Description |
|---|---|
static LongCollection |
LongCollections.asCollection(LongIterable iterable)
Returns an unmodifiable collection backed by the specified iterable.
|
static LongCollection |
LongCollections.synchronize(LongCollection c)
Returns a synchronized collection backed by the specified collection.
|
static LongCollection |
LongCollections.synchronize(LongCollection c,
Object sync)
Returns a synchronized collection backed by the specified collection, using an assigned object to synchronize.
|
static LongCollection |
LongCollections.unmodifiable(LongCollection c)
Returns an unmodifiable collection backed by the specified collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LongLists.EmptyList.addAll(int i,
LongCollection c) |
boolean |
LongLists.Singleton.addAll(int i,
LongCollection c) |
boolean |
LongLists.SynchronizedList.addAll(int index,
LongCollection c) |
boolean |
LongLists.UnmodifiableList.addAll(int index,
LongCollection c) |
boolean |
LongList.addAll(int index,
LongCollection c) |
boolean |
LongArrayList.addAll(int index,
LongCollection c) |
boolean |
AbstractLongList.addAll(int index,
LongCollection c)
Delegates to a more generic method.
|
boolean |
AbstractLongList.LongSubList.addAll(int index,
LongCollection c) |
boolean |
LongSets.Singleton.addAll(LongCollection c) |
boolean |
LongLists.EmptyList.addAll(LongCollection c) |
boolean |
LongLists.Singleton.addAll(LongCollection c) |
boolean |
LongCollections.EmptyCollection.addAll(LongCollection c) |
boolean |
LongCollections.SynchronizedCollection.addAll(LongCollection c) |
boolean |
LongCollections.UnmodifiableCollection.addAll(LongCollection c) |
boolean |
LongCollection.addAll(LongCollection c) |
boolean |
AbstractLongList.addAll(LongCollection c) |
boolean |
AbstractLongCollection.addAll(LongCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
LongCollections.EmptyCollection.containsAll(LongCollection c) |
boolean |
LongCollections.SynchronizedCollection.containsAll(LongCollection c) |
boolean |
LongCollections.UnmodifiableCollection.containsAll(LongCollection c) |
boolean |
LongCollection.containsAll(LongCollection c) |
boolean |
AbstractLongCollection.containsAll(LongCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
static int |
LongIterators.pour(LongIterator i,
LongCollection s)
Pours an iterator into a type-specific collection.
|
static int |
LongIterators.pour(LongIterator i,
LongCollection s,
int max)
Pours an iterator into a type-specific collection, with a limit on the number of elements.
|
boolean |
LongSets.Singleton.removeAll(LongCollection c) |
boolean |
LongCollections.EmptyCollection.removeAll(LongCollection c) |
boolean |
LongCollections.SynchronizedCollection.removeAll(LongCollection c) |
boolean |
LongCollections.UnmodifiableCollection.removeAll(LongCollection c) |
boolean |
LongCollection.removeAll(LongCollection c) |
boolean |
LongArrayList.removeAll(LongCollection c) |
boolean |
AbstractLongCollection.removeAll(LongCollection c)
Remove from this collection all elements in the given type-specific collection.
|
boolean |
LongSets.Singleton.retainAll(LongCollection c) |
boolean |
LongCollections.EmptyCollection.retainAll(LongCollection c) |
boolean |
LongCollections.SynchronizedCollection.retainAll(LongCollection c) |
boolean |
LongCollections.UnmodifiableCollection.retainAll(LongCollection c) |
boolean |
LongCollection.retainAll(LongCollection c) |
boolean |
AbstractLongCollection.retainAll(LongCollection c)
Retains in this collection only elements from the given type-specific collection.
|
static LongCollection |
LongCollections.synchronize(LongCollection c)
Returns a synchronized collection backed by the specified collection.
|
static LongCollection |
LongCollections.synchronize(LongCollection c,
Object sync)
Returns a synchronized collection backed by the specified collection, using an assigned object to synchronize.
|
static LongCollection |
LongCollections.unmodifiable(LongCollection c)
Returns an unmodifiable collection backed by the specified collection.
|
static long |
LongIterators.unwrap(LongIterator i,
LongCollection c)
Unwraps an iterator into a type-specific collection.
|
static int |
LongIterators.unwrap(LongIterator i,
LongCollection c,
int max)
Unwraps an iterator into a type-specific collection, with a limit on the number of elements.
|
| Constructor and Description |
|---|
LongArrayList(LongCollection c)
Creates a new array list and fills it with a given type-specific collection.
|
LongArraySet(LongCollection c)
Creates a new array set copying the contents of a given collection.
|
SynchronizedCollection(LongCollection c) |
SynchronizedCollection(LongCollection c,
Object sync) |
UnmodifiableCollection(LongCollection c) |
Copyright © 2016. All rights reserved.