Package com.github.tommyettinger.ds
Class LongIntMap.Keys
java.lang.Object
com.github.tommyettinger.ds.LongIntMap.Keys
- All Implemented Interfaces:
PrimitiveCollection<Long>,PrimitiveCollection.OfLong,PrimitiveSet<Long>,PrimitiveSet.SetOfLong
- Direct Known Subclasses:
LongIntOrderedMap.OrderedMapKeys
- Enclosing class:
- LongIntMap
-
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.OfShortNested classes/interfaces inherited from interface com.github.tommyettinger.ds.PrimitiveSet
PrimitiveSet.SetOfChar, PrimitiveSet.SetOfInt, PrimitiveSet.SetOfLong -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(long item) Append the remaining items that this can iterate through into the given Collection.voidclear()booleancontains(long item) booleaninthashCode()iterator()booleanremove(long 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, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection
isEmpty, notEmptyMethods inherited from interface com.github.tommyettinger.ds.PrimitiveCollection.OfLong
addAll, addAll, addAll, addAll, addDense, addDense, addLegible, addLegible, addVarargs, appendTo, appendTo, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, denseAppendTo, first, forEach, removeAll, removeAll, removeAll, removeAll, removeEach, removeEach, removeEach, removeEach, removeIf, retainAll, retainAll, retainAll, toArray, toArray, toDenseString, toDenseString, toString, toString, toStringMethods inherited from interface com.github.tommyettinger.ds.PrimitiveSet.SetOfLong
equalContents
-
Field Details
-
iter
-
-
Constructor Details
-
Keys
-
-
Method Details
-
add
public boolean add(long item) - Specified by:
addin interfacePrimitiveCollection.OfLong
-
remove
public boolean remove(long item) - Specified by:
removein interfacePrimitiveCollection.OfLong
-
contains
public boolean contains(long item) - Specified by:
containsin interfacePrimitiveCollection.OfLong
-
iterator
- Specified by:
iteratorin interfacePrimitiveCollection<Long>- Specified by:
iteratorin interfacePrimitiveCollection.OfLong
-
clear
public void clear()- Specified by:
clearin interfacePrimitiveCollection<Long>
-
size
public int size()- Specified by:
sizein interfacePrimitiveCollection<Long>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacePrimitiveCollection<Long>- Specified by:
hashCodein interfacePrimitiveSet<Long>- Overrides:
hashCodein classObject
-
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
-
equals
- Specified by:
equalsin interfacePrimitiveCollection<Long>- Specified by:
equalsin interfacePrimitiveSet<Long>- Overrides:
equalsin classObject
-
toString
-