org.apache.commons.collections.map

## Class AbstractHashedMap.KeySet

- java.lang.Object
- - java.util.AbstractCollection
  - - java.util.AbstractSet
    - - org.apache.commons.collections.map.AbstractHashedMap.KeySet

- All Implemented Interfaces:
    Iterable, Collection, Set
  Enclosing class:
    AbstractHashedMap

      protected static class AbstractHashedMap.KeySet
      extends AbstractSet

  KeySet implementation.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected AbstractHashedMap` | `parent` The parent map

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractHashedMap.KeySet(AbstractHashedMap parent)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clear()`
    `boolean` | `contains(Object key)`
    `Iterator` | `iterator()`
    `boolean` | `remove(Object key)`
    `int` | `size()`

    - ### Methods inherited from class java.util.AbstractSet

      `equals, hashCode, removeAll`

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

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

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

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

    - ### Methods inherited from interface java.util.Set

      `add, addAll, containsAll, isEmpty, retainAll, toArray, toArray`

- - ### Field Detail

    - #### parent

          protected final AbstractHashedMap parent

      The parent map

  - ### Constructor Detail

    - #### AbstractHashedMap.KeySet

          protected AbstractHashedMap.KeySet(AbstractHashedMap parent)

  - ### Method Detail

    - #### size

          public int size()

      Specified by:
        `size` in interface `Collection`
      Specified by:
        `size` in interface `Set`
      Specified by:
        `size` in class `AbstractCollection`

    - #### clear

          public void clear()

      Specified by:
        `clear` in interface `Collection`
      Specified by:
        `clear` in interface `Set`
      Overrides:
        `clear` in class `AbstractCollection`

    - #### contains

          public boolean contains(Object key)

      Specified by:
        `contains` in interface `Collection`
      Specified by:
        `contains` in interface `Set`
      Overrides:
        `contains` in class `AbstractCollection`

    - #### remove

          public boolean remove(Object key)

      Specified by:
        `remove` in interface `Collection`
      Specified by:
        `remove` in interface `Set`
      Overrides:
        `remove` in class `AbstractCollection`

    - #### iterator

          public Iterator iterator()

      Specified by:
        `iterator` in interface `Iterable`
      Specified by:
        `iterator` in interface `Collection`
      Specified by:
        `iterator` in interface `Set`
      Specified by:
        `iterator` in class `AbstractCollection`

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.