Package com.github.tommyettinger.ds
Class ObjectIntMap.Values<K>
java.lang.Object
com.github.tommyettinger.ds.ObjectIntMap.Values<K>
- All Implemented Interfaces:
PrimitiveCollection<Integer>,PrimitiveCollection.OfInt
- Direct Known Subclasses:
ObjectIntOrderedMap.OrderedMapValues
- Enclosing class:
- ObjectIntMap<K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tommyettinger.ds.PrimitiveCollection
PrimitiveCollection.OfBoolean, PrimitiveCollection.OfByte, PrimitiveCollection.OfChar, PrimitiveCollection.OfDouble, PrimitiveCollection.OfFloat, PrimitiveCollection.OfInt, PrimitiveCollection.OfLong, PrimitiveCollection.OfShort -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(int item) Append the remaining items that this can iterate through into the given Collection.voidclear()booleancontains(int item) iterator()booleanremove(int item) voidThe iterator is reused by this data structure, and you can reset it back to the start of the iteration order using this.intsize()toList()Returns a newObjectListcontaining the remaining items.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection
equals, hashCode, isEmpty, notEmptyMethods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection.OfInt
addAll, addAll, addAll, addAll, addDense, addDense, addLegible, addLegible, addVarargs, appendTo, appendTo, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, denseAppendTo, equalContents, first, forEach, removeAll, removeAll, removeAll, removeAll, removeEach, removeEach, removeEach, removeEach, removeIf, retainAll, retainAll, retainAll, toArray, toArray, toDenseString, toDenseString, toString, toString, toString
-
Field Details
-
iter
-
-
Constructor Details
-
Values
-
-
Method Details
-
add
public boolean add(int item) - Specified by:
addin interfacePrimitiveCollection.OfInt
-
remove
public boolean remove(int item) - Specified by:
removein interfacePrimitiveCollection.OfInt
-
contains
public boolean contains(int item) - Specified by:
containsin interfacePrimitiveCollection.OfInt
-
clear
public void clear()- Specified by:
clearin interfacePrimitiveCollection<K>
-
iterator
- Specified by:
iteratorin interfacePrimitiveCollection<K>- Specified by:
iteratorin interfacePrimitiveCollection.OfInt
-
size
public int size()- Specified by:
sizein interfacePrimitiveCollection<K>
-
resetIterator
public void resetIterator()The iterator is reused by this data structure, and you can reset it back to the start of the iteration order using this. -
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
-
toString
-