Class LifecycleEventManager.ListenerList

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, java.util.RandomAccess
    Enclosing class:
    LifecycleEventManager

    public static class LifecycleEventManager.ListenerList
    extends java.util.ArrayList<java.lang.Object>
    Extended list that tracks what event types its elements care about. Maintains set semantics as well.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.Object listener)  
      boolean hasListeners​(int type)  
      boolean remove​(java.lang.Object listener)  
      • Methods inherited from class java.util.ArrayList

        add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Method Detail

      • hasListeners

        public boolean hasListeners​(int type)
      • add

        public boolean add​(java.lang.Object listener)
        Specified by:
        add in interface java.util.Collection<java.lang.Object>
        Specified by:
        add in interface java.util.List<java.lang.Object>
        Overrides:
        add in class java.util.ArrayList<java.lang.Object>
      • remove

        public boolean remove​(java.lang.Object listener)
        Specified by:
        remove in interface java.util.Collection<java.lang.Object>
        Specified by:
        remove in interface java.util.List<java.lang.Object>
        Overrides:
        remove in class java.util.ArrayList<java.lang.Object>