Package org.biojava.bio.search
Class FilterTest.GreaterThan
- java.lang.Object
-
- org.biojava.bio.search.FilterTest.GreaterThan
-
- All Implemented Interfaces:
FilterTest
- Enclosing interface:
- FilterTest
public static class FilterTest.GreaterThan extends Object implements FilterTest
Tests that the value associated with the specified key is greater than the specified threshold. The test assumes that value is a String representing a real number. If not, the test will return null.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.search.FilterTest
FilterTest.Equals, FilterTest.FindRegex, FilterTest.GreaterThan, FilterTest.LessThan, FilterTest.MatchRegex
-
-
Constructor Summary
Constructors Constructor Description GreaterThan(double threshold)
-
-
-
Constructor Detail
-
GreaterThan
public GreaterThan(double threshold)
-
-
Method Detail
-
accept
public boolean accept(Object value)
- Specified by:
accept
in interfaceFilterTest
- Returns:
- returns true if test is successful.
-
-