org.modeshape.common.collection

## Class AbstractMultimap.WrappedCollection

- java.lang.Object
- - org.modeshape.common.collection.AbstractMultimap.WrappedCollection

- All Implemented Interfaces:
    Iterable<V>, Collection<V>
  Direct Known Subclasses:
    AbstractMultimap.WrappedList
  Enclosing class:
    AbstractMultimap<K,V>

      protected class AbstractMultimap.WrappedCollection
      extends Object
      implements Collection<V>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `AbstractMultimap.WrappedCollection.DelegateIterator`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AbstractMultimap.WrappedCollection(K key, Collection<V> values)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `add(V e)`
    `boolean` | `addAll(Collection<? extends V> c)`
    `protected void` | `addToMap()`
    `void` | `clear()`
    `boolean` | `contains(Object o)`
    `boolean` | `containsAll(Collection<?> c)`
    `protected Collection<V>` | `delegate()`
    `boolean` | `equals(Object obj)`
    `K` | `getKey()`
    `int` | `hashCode()`
    `boolean` | `isEmpty()`
    `Iterator<V>` | `iterator()`
    `boolean` | `remove(Object o)`
    `boolean` | `removeAll(Collection<?> c)`
    `protected void` | `removeIfEmpty()`
    `boolean` | `retainAll(Collection<?> c)`
    `int` | `size()`
    `Object[]` | `toArray()`
    `<T> T[]` | `toArray(T[] a)`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### AbstractMultimap.WrappedCollection

          protected AbstractMultimap.WrappedCollection(K key,
                                            Collection<V> values)

  - ### Method Detail

    - #### getKey

          public K getKey()

    - #### delegate

          protected Collection<V> delegate()

    - #### removeIfEmpty

          protected final void removeIfEmpty()

    - #### addToMap

          protected final void addToMap()

    - #### size

          public int size()

      Specified by:
        `size` in interface `Collection<V>`

    - #### isEmpty

          public boolean isEmpty()

      Specified by:
        `isEmpty` in interface `Collection<V>`

    - #### contains

          public boolean contains(Object o)

      Specified by:
        `contains` in interface `Collection<V>`

    - #### iterator

          public Iterator<V> iterator()

      Specified by:
        `iterator` in interface `Iterable<V>`
      Specified by:
        `iterator` in interface `Collection<V>`

    - #### toArray

          public Object[] toArray()

      Specified by:
        `toArray` in interface `Collection<V>`

    - #### toArray

          public <T> T[] toArray(T[] a)

      Specified by:
        `toArray` in interface `Collection<V>`

    - #### add

          public boolean add(V e)

      Specified by:
        `add` in interface `Collection<V>`

    - #### remove

          public boolean remove(Object o)

      Specified by:
        `remove` in interface `Collection<V>`

    - #### containsAll

          public boolean containsAll(Collection<?> c)

      Specified by:
        `containsAll` in interface `Collection<V>`

    - #### addAll

          public boolean addAll(Collection<? extends V> c)

      Specified by:
        `addAll` in interface `Collection<V>`

    - #### removeAll

          public boolean removeAll(Collection<?> c)

      Specified by:
        `removeAll` in interface `Collection<V>`

    - #### retainAll

          public boolean retainAll(Collection<?> c)

      Specified by:
        `retainAll` in interface `Collection<V>`

    - #### clear

          public void clear()

      Specified by:
        `clear` in interface `Collection<V>`

    - #### hashCode

          public int hashCode()

      Specified by:
        `hashCode` in interface `Collection<V>`
      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Collection<V>`
      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.