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