com.h3c.util.observer

## Interface Store<T>

- Type Parameters:
    `T` - type of the item.
  All Known Implementing Classes:
    StrongReferenceListenerStore, WeakReferenceListenerStore

      public interface Store<T>

  A store represents a group of objects, known as its items

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(T item)` Adds an item to the store.
    `boolean` | `contains(T item)` Verifies if the given item is contained in the store.
    `Collection<T>` | `getContent()` Gets an unmodifiable snapshot of the store.
    `void` | `remove(T item)` Removes an item from the store.

- - ### Method Detail

    - #### add

          void add(T item)

      Adds an item to the store.
      Parameters:
        `item` - listener to add.

    - #### remove

          void remove(T item)

      Removes an item from the store.
      Parameters:
        `item` - listener to remove.

    - #### contains

          boolean contains(T item)

      Verifies if the given item is contained in the store.
      Parameters:
        `item` - item to check.
      Returns:
        `true` if `item` belongs to the store, `false` otherwise.

    - #### getContent

          Collection<T> getContent()

      Gets an unmodifiable snapshot of the store. The returned collection must not be affected by any addition or deletion that takes place after this method has been executed.
      Returns:
        the store content.

Copyright © 2014. All Rights Reserved.