Package de.xima.fc.utils.range
Interface EndpointTypeComparator
-
- All Known Implementing Classes:
EndpointTypeComparators
public interface EndpointTypeComparator
A comparator for comparing two end points of a range.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description int
compare(EndpointDirection lhsDirection, com.google.common.collect.BoundType lhsBoundType, EndpointDirection rhsDirection, com.google.common.collect.BoundType rhsBoundType)
Compares two end points.default int
compare(EndpointType lhs, EndpointType rhs)
Compares two end points.
-
-
-
Method Detail
-
compare
int compare(EndpointDirection lhsDirection, com.google.common.collect.BoundType lhsBoundType, EndpointDirection rhsDirection, com.google.common.collect.BoundType rhsBoundType)
Compares two end points.- Parameters:
lhsDirection
- The direction of the first end point.lhsBoundType
- The bound type of the first end point.rhsDirection
- The direction of the second end point.rhsBoundType
- The bound type of the second end point.- Returns:
-1
if the first end point is less than the second end point,0
if both end points are equals, or+1
otherwise.
-
compare
default int compare(EndpointType lhs, EndpointType rhs)
Compares two end points.- Parameters:
lhs
- First end point to compare.rhs
- Second end point to compare.- Returns:
-1
if the first end point is less than the second end point,0
if both end points are equals, or+1
otherwise.
-
-