Class BooleanFunctionComparator<T>
- java.lang.Object
-
- org.eclipse.collections.impl.block.comparator.primitive.BooleanFunctionComparator<T>
-
- All Implemented Interfaces:
Serializable,Comparator<T>,SerializableComparator<T>
public class BooleanFunctionComparator<T> extends Object implements SerializableComparator<T>
A Comparator which takes a BooleanFunction to compare a primitive boolean value retrieved from an object. This file was automatically generated from template file primitiveFunctionComparator.stg.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BooleanFunctionComparator(BooleanFunction<T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(T o1, T o2)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
BooleanFunctionComparator
public BooleanFunctionComparator(BooleanFunction<T> function)
-
-
Method Detail
-
compare
public int compare(T o1, T o2)
- Specified by:
comparein interfaceComparator<T>
-
-