Package generic.concurrent

# Class ConcurrentListenerSet<T>

java.lang.Object
generic.concurrent.ConcurrentListenerSet<T>

Type Parameters:
  `T` - the type

All Implemented Interfaces:
  `Iterable<T>`

public class ConcurrentListenerSet<T> extends Object implements Iterable<T>
A listener set that is weakly consistent. This allows for iteration of the set while other threads modify the set.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ConcurrentListenerSet()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(T t)`
  `List<T>`
  `asList()`
  `void`
  `clear()`
  `Iterator<T>`
  `iterator()`
  `void`
  `remove(T t)`

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

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

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

  `forEach, spliterator`

- ## Constructor Details

  - ### ConcurrentListenerSet

    public ConcurrentListenerSet()

- ## Method Details

  - ### add

    public void add(T t)

  - ### remove

    public void remove(T t)

  - ### clear

    public void clear()

  - ### iterator

    public Iterator<T> iterator()
    Specified by:
      `iterator` in interface `Iterable<T>`

  - ### asList

    public List<T> asList()