Package org.eclipse.xtext.ide.util
Class RangeComparator
- java.lang.Object
-
- org.eclipse.xtext.ide.util.RangeComparator
-
- All Implemented Interfaces:
java.util.Comparator<org.eclipse.lsp4j.Range>
public class RangeComparator extends java.lang.Object implements java.util.Comparator<org.eclipse.lsp4j.Range>Null-safe comparator forrangeinstances.Compares
start positionsfirst, thenend positions.- See Also:
PositionComparator
-
-
Constructor Summary
Constructors Constructor Description RangeComparator(PositionComparator positionComparator)Creates a new range comparator with the give comparator delegate forpositions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.eclipse.lsp4j.Range left, org.eclipse.lsp4j.Range right)
-
-
-
Constructor Detail
-
RangeComparator
@Inject public RangeComparator(PositionComparator positionComparator)
Creates a new range comparator with the give comparator delegate forpositions.- Parameters:
positionComparator- the delegate comparator for the positions. Cannot benull.
-
-