Package com.uc4.util

Class ArrayListDecorator<T>

  • Type Parameters:
    T - Type
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

    public class ArrayListDecorator<T>
    extends java.util.ArrayList<T>
    Adds notification behavior to java.util.ArrayList
    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
      void add​(int arg0, T arg1)  
      boolean add​(T arg0)  
      boolean addAll​(java.util.Collection<? extends T> c)  
      T remove​(int arg0)  
      boolean remove​(java.lang.Object arg0)  
      void setListener​(IChangeListener listener)
      Sets the listener.
      • Methods inherited from class java.util.ArrayList

        addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, 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
    • Constructor Detail

      • ArrayListDecorator

        public ArrayListDecorator()
    • Method Detail

      • setListener

        public void setListener​(IChangeListener listener)
        Sets the listener.
        Parameters:
        listener - Listener
      • addAll

        public boolean addAll​(java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T>
        Specified by:
        addAll in interface java.util.List<T>
        Overrides:
        addAll in class java.util.ArrayList<T>
      • add

        public void add​(int arg0,
                        T arg1)
        Specified by:
        add in interface java.util.List<T>
        Overrides:
        add in class java.util.ArrayList<T>
      • add

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

        public T remove​(int arg0)
        Specified by:
        remove in interface java.util.List<T>
        Overrides:
        remove in class java.util.ArrayList<T>
      • remove

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