Package org.agrona.collections
Class Object2IntHashMap.KeySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<K>
-
- org.agrona.collections.Object2IntHashMap.KeySet
-
- All Implemented Interfaces:
java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.Set<K>
- Enclosing class:
- Object2IntHashMap<K>
public final class Object2IntHashMap.KeySet extends java.util.AbstractSet<K>
Set of keys that can optionally cache iterators to avoid allocation.
-
-
Field Summary
Fields Modifier and Type Field Description private Object2IntHashMap.KeyIterator
keyIterator
-
Constructor Summary
Constructors Constructor Description KeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(java.lang.Object o)
Object2IntHashMap.KeyIterator
iterator()
boolean
remove(java.lang.Object o)
int
size()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
keyIterator
private final Object2IntHashMap.KeyIterator keyIterator
-
-
Method Detail
-
iterator
public Object2IntHashMap.KeyIterator iterator()
-
size
public int size()
-
contains
public boolean contains(java.lang.Object o)
-
remove
public boolean remove(java.lang.Object o)
-
-