public final class Int2IntHashMap.ValueCollection extends AbstractCollection<Integer>
| Constructor and Description |
|---|
ValueCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int value)
Checks if the value is contained in the map.
|
boolean |
contains(Object o) |
Int2IntHashMap.ValueIterator |
iterator() |
boolean |
removeIfInt(IntPredicate filter)
Removes all the elements of this collection that satisfy the given predicate.
|
int |
size() |
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic Int2IntHashMap.ValueIterator iterator()
iterator in interface Iterable<Integer>iterator in interface Collection<Integer>iterator in class AbstractCollection<Integer>public int size()
size in interface Collection<Integer>size in class AbstractCollection<Integer>public boolean contains(Object o)
contains in interface Collection<Integer>contains in class AbstractCollection<Integer>public boolean contains(int value)
value - to be checked.true if value is contained in this map.public boolean removeIfInt(IntPredicate filter)
NB: Renamed from removeIf to avoid overloading on parameter types of lambda expression, which doesn't play well with type inference in lambda expressions.
filter - a predicate to apply.true if at least one value was removed.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.