Class TimeFilter

  • All Implemented Interfaces:
    IFilter<java.lang.Long>

    public class TimeFilter
    extends java.lang.Object
    implements IFilter<java.lang.Long>
    Filter for testing if a time point matches one specific pattern.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IFilter<java.lang.Integer>[] filters
      The filters.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeFilter​(IFilter<java.lang.Integer>[] filters)
      Create a new time filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean filter​(java.lang.Long time)
      Test if timepoint matches filter.
      IFilter<java.lang.Integer>[] getFilters()
      Get the filters.
      void setFilters​(IFilter<java.lang.Integer>[] filters)
      Set the filters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filters

        protected IFilter<java.lang.Integer>[] filters
        The filters.
    • Constructor Detail

      • TimeFilter

        public TimeFilter​(IFilter<java.lang.Integer>[] filters)
        Create a new time filter.
        Parameters:
        filters - The filters.
    • Method Detail

      • filter

        public boolean filter​(java.lang.Long time)
        Test if timepoint matches filter.
        Specified by:
        filter in interface IFilter<java.lang.Long>
        Parameters:
        time - The time.
        Returns:
        True, if ok.
      • getFilters

        public IFilter<java.lang.Integer>[] getFilters()
        Get the filters. return The filters.
      • setFilters

        public void setFilters​(IFilter<java.lang.Integer>[] filters)
        Set the filters.
        Parameters:
        filters - The filters to set.