| Package | Description |
|---|---|
| org.kocakosm.pitaya.collection |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConcurrentBag<E>
A
Bag providing thread safety and atomicity guarantees. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBag<E>
Abstract skeleton implementation of the
Bag interface. |
class |
ArrayBag<E>
|
class |
ConcurrentHashBag<E>
A thread-safe variant of
HashBag based on ConcurrentHashMap. |
class |
CopyOnWriteArrayBag<E>
A thread-safe variant of
ArrayBag based on CopyOnWriteArrayList. |
class |
HashBag<E>
|
class |
ImmutableBag<E>
Immutable
Bag implementation. |
| Modifier and Type | Field and Description |
|---|---|
static Bag |
Bags.EMPTY_BAG
The empty
Bag. |
| Modifier and Type | Method and Description |
|---|---|
Bag<E> |
ImmutableBag.Builder.build()
Finalizes the creation of the
ImmutableBag. |
static <E> Bag<E> |
ImmutableBag.copyOf(Collection<? extends E> c)
Creates a new
ImmutableBag from the given Collection. |
static <E> Bag<E> |
ImmutableBag.copyOf(E[] values)
Creates a new
ImmutableBag containing the given elements. |
static <E> Bag<E> |
ImmutableBag.copyOf(Iterable<? extends E> i)
Creates a new
ImmutableBag from the given Iterable. |
static <E> Bag<E> |
ImmutableBag.copyOf(Iterator<? extends E> i)
Creates a new
ImmutableBag from the given Iterator. |
static <E> Bag<E> |
Bags.emptyBag()
Returns the empty
Bag for a particular type (type-safe). |
static <E> Bag<E> |
ImmutableBag.of(E... values)
Creates a new
ImmutableBag containing the given elements. |
static <T> Bag<T> |
Iterables.toBag(Iterable<? extends T> iterable)
Returns a
Bag containing all the given Iterable's
elements. |
static <E> Bag<E> |
Iterators.toBag(Iterator<? extends E> iterator)
Returns a
Bag containing all the given Iterator's
elements. |
Copyright © 2012–2015. All rights reserved.