# Class AbstractHashedMap.Values<V>

java.lang.Object
java.util.AbstractCollection<V>
org.apache.commons.collections4.map.AbstractHashedMap.Values<V>

Type Parameters:
  `V` - the type of elements maintained by this collection

All Implemented Interfaces:
  `Iterable<V>`, `Collection<V>`

Enclosing class:
  `AbstractHashedMap<K,V>`

protected static class AbstractHashedMap.Values<V> extends AbstractCollection<V>
Values implementation.

Since:
  3.0

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Values(AbstractHashedMap<?,V> parent)`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear()`
  `boolean`
  `contains(Object value)`
  `Iterator<V>`
  `iterator()`
  `int`
  `size()`

  ### Methods inherited from class java.util.AbstractCollection

  `add, addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.util.Collection

  `equals, hashCode, parallelStream, removeIf, spliterator, stream`

  ### Methods inherited from interface java.lang.Iterable

  `forEach`

- ## Constructor Details

  - ### Values

    protected Values(AbstractHashedMap<?,V> parent)
    Constructs a new instance.
    Parameters:
      `parent` - The parent AbstractHashedMap.

- ## Method Details

  - ### clear

    public void clear()
    Specified by:
      `clear` in interface `Collection<V>`
    Overrides:
      `clear` in class `AbstractCollection<V>`

  - ### contains

    public boolean contains(Object value)
    Specified by:
      `contains` in interface `Collection<V>`
    Overrides:
      `contains` in class `AbstractCollection<V>`

  - ### iterator

    public Iterator<V> iterator()
    Specified by:
      `iterator` in interface `Collection<V>`
    Specified by:
      `iterator` in interface `Iterable<V>`
    Specified by:
      `iterator` in class `AbstractCollection<V>`

  - ### size

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