Package | Description |
---|---|
com.gs.collections.api.bag |
This package contains interfaces for Bag API.
|
com.gs.collections.api.bag.primitive |
This package contains API for Primitive Bags with Mutable and Immutable variants.
|
com.gs.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
com.gs.collections.api.multimap |
This package contains interfaces for
Multimap . |
com.gs.collections.api.multimap.bag |
This package contains interfaces for
BagMultimap . |
com.gs.collections.api.partition.bag |
This package contains interfaces for
PartitionBag . |
com.gs.collections.impl.bag.immutable |
This package contains implementations of the
ImmutableBag interface. |
com.gs.collections.impl.bag.mutable |
This package contains implementations of the
MutableBag interface. |
com.gs.collections.impl.bag.sorted.mutable |
This package contains implementations of
MutableSortedBag . |
com.gs.collections.impl.multimap |
This package contains implementations of the
Multimap interface. |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableBag<T> |
interface |
MutableBag<T>
A MutableBag is a Collection whose elements are unordered and may contain duplicate entries.
|
interface |
UnsortedBag<T> |
Modifier and Type | Method and Description |
---|---|
Bag<T> |
Bag.reject(Predicate<? super T> predicate) |
<P> Bag<T> |
Bag.rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
Bag<T> |
Bag.select(Predicate<? super T> predicate) |
Bag<T> |
Bag.selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
<S> Bag<S> |
Bag.selectInstancesOf(Class<S> clazz) |
<P> Bag<T> |
Bag.selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
Modifier and Type | Method and Description |
---|---|
<V> Bag<V> |
BooleanBag.collect(BooleanToObjectFunction<? extends V> function) |
<V> Bag<V> |
ByteBag.collect(ByteToObjectFunction<? extends V> function) |
<V> Bag<V> |
CharBag.collect(CharToObjectFunction<? extends V> function) |
<V> Bag<V> |
DoubleBag.collect(DoubleToObjectFunction<? extends V> function) |
<V> Bag<V> |
FloatBag.collect(FloatToObjectFunction<? extends V> function) |
<V> Bag<V> |
IntBag.collect(IntToObjectFunction<? extends V> function) |
<V> Bag<V> |
LongBag.collect(LongToObjectFunction<? extends V> function) |
<V> Bag<V> |
ShortBag.collect(ShortToObjectFunction<? extends V> function) |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableSortedBag<T>
ImmutableSortedBag is the non-modifiable equivalent interface to
MutableSortedBag . |
interface |
MutableSortedBag<T> |
interface |
SortedBag<T>
An Iterable whose elements are sorted by some comparator or their natural ordering and may contain duplicate entries.
|
Modifier and Type | Method and Description |
---|---|
Bag<K> |
Multimap.keyBag()
Returns a
Bag of keys with the count corresponding to the number of mapped values. |
Modifier and Type | Method and Description |
---|---|
Bag<V> |
BagMultimap.get(K key) |
Modifier and Type | Method and Description |
---|---|
Bag<T> |
PartitionBag.getRejected() |
Bag<T> |
PartitionBag.getSelected() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractImmutableBag<T> |
class |
ImmutableArrayBag<T> |
class |
ImmutableHashBag<T> |
Modifier and Type | Method and Description |
---|---|
static <T> ImmutableArrayBag<T> |
ImmutableArrayBag.copyFrom(Bag<T> bag) |
static <T> ImmutableHashBag<T> |
ImmutableHashBag.newBagWith(Bag<? extends T> bag) |
Constructor and Description |
---|
ImmutableHashBag(Bag<? extends T> source) |
Modifier and Type | Class and Description |
---|---|
class |
HashBag<T>
A HashBag is a MutableBag which uses a Map as its underlying data store.
|
class |
MultiReaderHashBag<T>
MultiReaderHashBag provides a thread-safe wrapper around a HashBag, using a ReentrantReadWriteLock.
|
class |
SynchronizedBag<T>
A synchronized view of a
MutableBag . |
class |
UnmodifiableBag<T>
An unmodifiable view of a bag.
|
Modifier and Type | Method and Description |
---|---|
static <E> HashBag<E> |
HashBag.newBag(Bag<? extends E> source) |
Modifier and Type | Class and Description |
---|---|
class |
TreeBag<T>
A TreeBag is a MutableSortedBag which uses a SortedMap as its underlying data store.
|
class |
UnmodifiableSortedBag<T>
An unmodifiable view of a SortedBag.
|
Modifier and Type | Method and Description |
---|---|
Bag<K> |
AbstractMultimap.keyBag() |
Copyright © 2004–2018. All rights reserved.