Class AcceptAllFilter

  • All Implemented Interfaces:
    IFilter

    public final class AcceptAllFilter
    extends java.lang.Object
    implements IFilter
    Filter that accepts everything. Available as a singleton since having more than one instance would be wasteful.
    Since:
    3.1
    • Constructor Summary

      Constructors 
      Constructor Description
      AcceptAllFilter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      static IFilter getInstance()
      Returns the singleton instance of AcceptAllFilter
      boolean select​(java.lang.Object toTest)
      Determines if the given object passes this filter.
      • Methods inherited from class java.lang.Object

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

      • AcceptAllFilter

        public AcceptAllFilter()
    • Method Detail

      • getInstance

        public static IFilter getInstance()
        Returns the singleton instance of AcceptAllFilter
        Returns:
        the singleton instance of AcceptAllFilter
      • select

        public boolean select​(java.lang.Object toTest)
        Description copied from interface: IFilter
        Determines if the given object passes this filter.
        Specified by:
        select in interface IFilter
        Parameters:
        toTest - object to compare against the filter
        Returns:
        true if the object is accepted by the filter.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object