Class ObjectIntMap.Keys<K>
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.github.tommyettinger.ds.ObjectIntMap.Keys<K>
- All Implemented Interfaces:
EnhancedCollection<K>, Iterable<K>, Collection<K>, Set<K>
- Direct Known Subclasses:
ObjectIntOrderedMap.OrderedMapKeys
- Enclosing class:
ObjectIntMap<K>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendInto(Collection<K> coll) Append the remaining items that this can iterate through into the given Collection.booleaninthashCode()iterator()intsize()toList()Returns a newObjectListcontaining the remaining items.toString()Methods inherited from class AbstractSet
equals, removeAllMethods inherited from class AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArrayMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface EnhancedCollection
add, add, add, addAll, addAll, addAll, addAllIterable, addLegible, addLegible, addVarargs, appendTo, appendTo, containsAll, containsAll, containsAll, containsAllIterable, containsAny, containsAny, containsAny, containsAnyIterable, first, removeAll, removeAll, removeAll, removeAllIterable, removeEach, removeEach, removeEach, removeEachIterable, toString, toString, toString
-
Field Details
-
map
-
-
Constructor Details
-
Keys
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceSet<K>- Overrides:
containsin classAbstractCollection<K>
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceSet<K>- Specified by:
sizein classAbstractCollection<K>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<K>- Specified by:
hashCodein interfaceSet<K>- Overrides:
hashCodein classAbstractSet<K>
-
toString
- Overrides:
toStringin classAbstractCollection<K>
-
toList
Returns a newObjectListcontaining the remaining items. Does not change the position of this iterator. -
appendInto
Append the remaining items that this can iterate through into the given Collection. Does not change the position of this iterator.- Parameters:
coll- any modifiable Collection; may have items appended into it- Returns:
- the given collection
-