Package com.github.tommyettinger.ds
Class ObjectFloatMap.Entries<K>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<ObjectFloatMap.Entry<K>>
com.github.tommyettinger.ds.ObjectFloatMap.Entries<K>
- All Implemented Interfaces:
EnhancedCollection<ObjectFloatMap.Entry<K>>,Iterable<ObjectFloatMap.Entry<K>>,Collection<ObjectFloatMap.Entry<K>>,Set<ObjectFloatMap.Entry<K>>
- Direct Known Subclasses:
ObjectFloatOrderedMap.OrderedMapEntries
- Enclosing class:
- ObjectFloatMap<K>
public static class ObjectFloatMap.Entries<K>
extends AbstractSet<ObjectFloatMap.Entry<K>>
implements EnhancedCollection<ObjectFloatMap.Entry<K>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendInto(ObjectFloatMap<K> coll) Append the remaining items that this can iterate through into the given Map.appendInto(Collection<ObjectFloatMap.Entry<K>> coll) Append the remaining items that this can iterate through into the given Collection.inthashCode()iterator()Returns an iterator over the elements contained in this collection.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.util.AbstractSet
equals, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArrayMethods 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 com.github.tommyettinger.ds.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
-
iter
-
-
Constructor Details
-
Entries
-
-
Method Details
-
iterator
Returns an iterator over the elements contained in this collection.- Specified by:
iteratorin interfaceCollection<K>- Specified by:
iteratorin interfaceIterable<K>- Specified by:
iteratorin interfaceSet<K>- Specified by:
iteratorin classAbstractCollection<ObjectFloatMap.Entry<K>>- Returns:
- an iterator over the elements contained in this collection
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceSet<K>- Specified by:
sizein classAbstractCollection<ObjectFloatMap.Entry<K>>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<K>- Specified by:
hashCodein interfaceSet<K>- Overrides:
hashCodein classAbstractSet<ObjectFloatMap.Entry<K>>
-
toString
- Overrides:
toStringin classAbstractCollection<ObjectFloatMap.Entry<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
-
appendInto
Append the remaining items that this can iterate through into the given Map. Does not change the position of this iterator. Note that a Map is not a Collection.- Parameters:
coll- any modifiable Map; may have items appended into it- Returns:
- the given map
-