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 Details

  • Constructor Details

  • Method Details

    • iterator

      public ObjectObjectMap.MapIterator<K,V,V> iterator()
      Returns an iterator over the elements contained in this collection.
      Specified by:
      iterator in interface Collection<K>
      Specified by:
      iterator in interface Iterable<K>
      Specified by:
      iterator in class AbstractCollection<V>
      Returns:
      an iterator over the elements contained in this collection
    • 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.
    • size

      public int size()
      Specified by:
      size in interface Collection<K>
      Specified by:
      size in class AbstractCollection<V>
    • toString

      public String toString()
      Overrides:
      toString in class AbstractCollection<V>
    • toList

      public ObjectList<V> toList()
      Returns a new ObjectList containing the remaining items. Does not change the position of this iterator.
    • appendInto

      public Collection<V> appendInto(Collection<V> coll)
      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