Class MirrorFilterImpl<T>

  • Type Parameters:
    T - generic type on which this filter is applied.
    All Implemented Interfaces:
    java.lang.Cloneable, Filter<T>

    public class MirrorFilterImpl<T>
    extends java.lang.Object
    implements Filter<T>
    A mirror filter is a standard defined filter that (as the name suggests) mirrors each element. Thus mirror function m : T -> T with m(t) = t.
    Author:
    S.J. van Zelst
    • Method Summary

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

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MirrorFilterImpl

        public MirrorFilterImpl()
    • 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 Filter<T> clone()
        Description copied from interface: Filter
        Create this filter's clone.
        Specified by:
        clone in interface Filter<T>
        Overrides:
        clone in class java.lang.Object
        Returns:
        clone of filter.