Interface Filter<T>


  • public interface Filter<T>
    A filter for anything that can ACCEPT, REJECT, or STOP.
    Author:
    Ondrej Zizka
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Filter.Result  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Filter.Result decide​(T what)
      Meaning of the returned values: ACCEPT - given object is accepted, filtering continues; REJECT - given object is rejected, filtering continues; STOP - given object is rejected, filtering should stop; ACCEPT_STOP - given object is accepted, filtering should stop.
    • Method Detail

      • decide

        Filter.Result decide​(T what)
        Meaning of the returned values: ACCEPT - given object is accepted, filtering continues; REJECT - given object is rejected, filtering continues; STOP - given object is rejected, filtering should stop; ACCEPT_STOP - given object is accepted, filtering should stop.