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