Class FilterTest.LessThan

  • All Implemented Interfaces:
    FilterTest
    Enclosing interface:
    FilterTest

    public static class FilterTest.LessThan
    extends Object
    implements FilterTest
    Tests that the value associated with the specified key is less than the specified threshold. The test assumes that value is a String representing a real number. If not, the test will return null.
    • Constructor Detail

      • LessThan

        public LessThan​(double threshold)
    • Method Detail

      • accept

        public boolean accept​(Object value)
        Specified by:
        accept in interface FilterTest
        Returns:
        returns true if test is successful.