public final class LongCollections
extends java.lang.Object
Collections| Modifier and Type | Class | Description |
|---|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
static LongCollection |
asCollection(LongIterable iterable) |
Returns an unmodifiable collection backed by the specified iterable.
|
static LongCollection |
synchronize(LongCollection c) |
Returns a synchronized collection backed by the specified collection.
|
static LongCollection |
synchronize(LongCollection c,
java.lang.Object sync) |
Returns a synchronized collection backed by the specified collection, using
an assigned object to synchronize.
|
static LongCollection |
unmodifiable(LongCollection c) |
Returns an unmodifiable collection backed by the specified collection.
|
public static LongCollection synchronize(LongCollection c)
c - the collection to be wrapped in a synchronized collection.Collections.synchronizedCollection(Collection)public static LongCollection synchronize(LongCollection c, java.lang.Object sync)
c - the collection to be wrapped in a synchronized collection.sync - an object that will be used to synchronize the list access.Collections.synchronizedCollection(Collection)public static LongCollection unmodifiable(LongCollection c)
c - the collection to be wrapped in an unmodifiable collection.Collections.unmodifiableCollection(Collection)public static LongCollection asCollection(LongIterable iterable)
iterable - the iterable object to be wrapped in an unmodifiable collection.