Class ConcurrentListenerSet<T>

  • All Implemented Interfaces:

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T t)  
      void clear()  
      java.util.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 Detail

      • ConcurrentListenerSet

        public ConcurrentListenerSet()
    • Method Detail

      • add

        public void add​(T t)
      • remove

        public void remove​(T t)
      • clear

        public void clear()
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>