Package org.openjdk.jmc.common
Interface IPredicate<T>
-
- Type Parameters:
T
- the type of objects that this predicate can test
- All Known Implementing Classes:
TimeRangeFilter.TimeRangePredicate
,TimeRangeThreadFilter.TimeRangePredicate
public interface IPredicate<T>
A predicate tests an object and returns eithertrue
orfalse
depending on the implementation. This is very similar to the Java 8 interface java.util.Predicate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(T o)
Tests an object.
-
-
-
Method Detail
-
evaluate
boolean evaluate(T o)
Tests an object.- Parameters:
o
- object to test- Returns:
- the test result,
true
orfalse
-
-