public class IntCollections extends Object
Collections
Modifier and Type | Class and Description |
---|---|
static class |
IntCollections.EmptyCollection
An immutable class representing an empty type-specific collection.
|
static class |
IntCollections.IterableCollection
A collection wrapper class for iterables.
|
static class |
IntCollections.SynchronizedCollection
A synchronized wrapper class for collections.
|
static class |
IntCollections.UnmodifiableCollection
An unmodifiable wrapper class for collections.
|
Modifier and Type | Method and Description |
---|---|
static IntCollection |
asCollection(IntIterable iterable)
Returns an unmodifiable collection backed by the specified iterable.
|
static IntCollection |
synchronize(IntCollection c)
Returns a synchronized collection backed by the specified collection.
|
static IntCollection |
synchronize(IntCollection c,
Object sync)
Returns a synchronized collection backed by the specified collection, using an assigned object to synchronize.
|
static IntCollection |
unmodifiable(IntCollection c)
Returns an unmodifiable collection backed by the specified collection.
|
public static IntCollection synchronize(IntCollection c)
c
- the collection to be wrapped in a synchronized collection.Collections.synchronizedCollection(Collection)
public static IntCollection synchronize(IntCollection c, 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 IntCollection unmodifiable(IntCollection c)
c
- the collection to be wrapped in an unmodifiable collection.Collections.unmodifiableCollection(Collection)
public static IntCollection asCollection(IntIterable iterable)
iterable
- the iterable object to be wrapped in an unmodifiable collection.