Package com.github.tommyettinger.ds
Class LongFloatMap.Values
java.lang.Object
com.github.tommyettinger.ds.LongFloatMap.Values
- All Implemented Interfaces:
PrimitiveCollection<Float>,PrimitiveCollection.OfFloat
- Direct Known Subclasses:
LongFloatOrderedMap.OrderedMapValues
- Enclosing class:
- LongFloatMap
-
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(float item) Append the remaining items that this can iterate through into the given Collection.voidclear()booleancontains(float item) iterator()Returns an iterator over the elements contained in this collection.booleanremove(float 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.OfFloat
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, toString
-
Field Details
-
iter
-
-
Constructor Details
-
Values
-
-
Method Details
-
add
public boolean add(float item) - Specified by:
addin interfacePrimitiveCollection.OfFloat
-
remove
public boolean remove(float item) - Specified by:
removein interfacePrimitiveCollection.OfFloat
-
contains
public boolean contains(float item) - Specified by:
containsin interfacePrimitiveCollection.OfFloat
-
clear
public void clear()- Specified by:
clearin interfacePrimitiveCollection<Float>
-
iterator
Returns an iterator over the elements contained in this collection.- Specified by:
iteratorin interfacePrimitiveCollection<Float>- Specified by:
iteratorin interfacePrimitiveCollection.OfFloat- Returns:
- an iterator over the elements contained in this collection
-
size
public int size()- Specified by:
sizein interfacePrimitiveCollection<Float>
-
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
-