Class FilterStackImpl<T>

  • Type Parameters:
    T - generic type on which this filter stack should be applied.
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Filter<T>>, java.util.Collection<Filter<T>>, java.util.List<Filter<T>>, java.util.RandomAccess, Filter<T>, FilterStack<T>

    public class FilterStackImpl<T>
    extends java.util.ArrayList<Filter<T>>
    implements FilterStack<T>
    Author:
    S.J. van Zelst
    See Also:
    FilterStack, Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterStackImpl​(java.util.List<Filter<T>> filters)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T apply​(T t)
      Apply this filter on some input.
      FilterStack<T> clone()
      Create this filter's clone.
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, 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, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Constructor Detail

      • FilterStackImpl

        public FilterStackImpl​(java.util.List<Filter<T>> filters)
    • Method Detail

      • apply

        public T apply​(T t)
        Description copied from interface: Filter
        Apply this filter on some input.
        Specified by:
        apply in interface Filter<T>
        Parameters:
        t - input object of type T
        Returns:
        return object of type T
      • clone

        public FilterStack<T> clone()
        Description copied from interface: Filter
        Create this filter's clone.
        Specified by:
        clone in interface Filter<T>
        Specified by:
        clone in interface FilterStack<T>
        Overrides:
        clone in class java.util.ArrayList<Filter<T>>
        Returns:
        clone of filter.