Package com.github.tommyettinger.ds
Class LongObjectMap.Values<V>
java.lang.Object
java.util.AbstractCollection<V>
com.github.tommyettinger.ds.LongObjectMap.Values<V>
- All Implemented Interfaces:
EnhancedCollection<V>,Iterable<V>,Collection<V>
- Direct Known Subclasses:
LongObjectOrderedMap.OrderedMapValues
- Enclosing class:
- LongObjectMap<V>
public static class LongObjectMap.Values<V>
extends AbstractCollection<V>
implements EnhancedCollection<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappendInto(Collection<V> coll) Append the remaining items that this can iterate through into the given Collection.voidclear()booleaniterator()Returns an iterator over the elements contained in this collection.booleanvoidThe 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.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, 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
-
Values
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<V>- Overrides:
addin classAbstractCollection<V>
-
remove
- Specified by:
removein interfaceCollection<V>- Overrides:
removein classAbstractCollection<V>
-
contains
- Specified by:
containsin interfaceCollection<V>- Overrides:
containsin classAbstractCollection<V>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<V>- Overrides:
clearin classAbstractCollection<V>
-
iterator
Returns an iterator over the elements contained in this collection.- Specified by:
iteratorin interfaceCollection<V>- Specified by:
iteratorin interfaceIterable<V>- Specified by:
iteratorin classAbstractCollection<V>- Returns:
- an iterator over the elements contained in this collection
-
size
public int size()- Specified by:
sizein interfaceCollection<V>- Specified by:
sizein classAbstractCollection<V>
-
toString
- Overrides:
toStringin classAbstractCollection<V>
-
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
-