Package org.plumelib.util
Class ArrayMap.KeySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<@KeyFor("this") K>
org.plumelib.util.ArrayMap.KeySet
- All Implemented Interfaces:
Iterable<K>,Collection<K>,Set<K>
Represents a view of the keys.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, retainAll, spliterator
-
Constructor Details
-
KeySet
public KeySet()Creates a new KeySet.
-
-
Method Details
-
size
@Pure public final @org.checkerframework.checker.index.qual.NonNegative int size() -
clear
public final void clear() -
iterator
- Specified by:
iteratorin interfaceCollection<K extends @UnknownSignedness Object>- Specified by:
iteratorin interfaceIterable<K extends @UnknownSignedness Object>- Specified by:
iteratorin interfaceSet<K extends @UnknownSignedness Object>- Specified by:
iteratorin classAbstractCollection<@KeyFor("this") K extends @UnknownSignedness Object>
-
contains
-
remove
-
toArray
-
toArray
@SideEffectFree public <T> @Nullable T[] toArray(@PolyNull T[] a) -
forEach
-