| Package | Description |
|---|---|
| org.eclipse.collections.api.bag |
This package contains interfaces for Bag API.
|
| org.eclipse.collections.api.factory.bag |
This package contains factory API for creating instance of type
Bag. |
| org.eclipse.collections.api.map.primitive |
This package contains API for primitive to primitive maps, primitive to object maps and object to primitive maps with mutable and immutable variants.
|
| Modifier and Type | Method and Description |
|---|---|
MutableList<ObjectIntPair<T>> |
MutableBagIterable.bottomOccurrences(int count) |
ImmutableList<ObjectIntPair<T>> |
ImmutableBag.bottomOccurrences(int count) |
ListIterable<ObjectIntPair<T>> |
Bag.bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
MutableList<ObjectIntPair<T>> |
MutableBagIterable.topOccurrences(int count) |
ImmutableList<ObjectIntPair<T>> |
ImmutableBag.topOccurrences(int count) |
ListIterable<ObjectIntPair<T>> |
Bag.topOccurrences(int count)
Returns the
count most frequently occurring items. |
| Modifier and Type | Method and Description |
|---|---|
default <T> MutableBag<T> |
MutableBagFactory.ofOccurrences(ObjectIntPair<T>... elementsWithOccurrences)
|
default <T> ImmutableBag<T> |
ImmutableBagFactory.ofOccurrences(ObjectIntPair<T>... elementsWithOccurrences)
|
default <T> MutableBag<T> |
MutableBagFactory.withOccurrences(ObjectIntPair<T>... elementsWithOccurrences) |
default <T> ImmutableBag<T> |
ImmutableBagFactory.withOccurrences(ObjectIntPair<T>... elementsWithOccurrences) |
| Modifier and Type | Method and Description |
|---|---|
RichIterable<ObjectIntPair<K>> |
ObjectIntMap.keyValuesView()
Returns a view of the key/value pairs in this map.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
MutableObjectIntMap.putPair(ObjectIntPair<K> keyValuePair)
This method allows MutableObjectIntMap the ability to add an element in the form of
ObjectIntPair<K>. |
| Modifier and Type | Method and Description |
|---|---|
default MutableObjectIntMap<K> |
MutableObjectIntMap.withAllKeyValues(Iterable<ObjectIntPair<K>> keyValuePairs) |
Copyright © 2004–2022. All rights reserved.