Top Description Constructors Methods
org.eclipse.lsp4j.util

public final Class Ranges

extends Object
Class Inheritance
Imports
org.eclipse.lsp4j.Position, .Range, org.eclipse.lsp4j.jsonrpc.util.Preconditions

Utility class for Range.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
containsPosition(Range range, Position position)

true if the position is either inside or on the border of the range.

public static boolean
containsRange(Range bigger, Range smaller)

true if the smaller range is inside or equal to the bigger range.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Rangesback to summary
private Ranges()

Method Detail

containsPositionback to summary
public static boolean containsPosition(Range range, Position position)

true if the position is either inside or on the border of the range. Otherwise, false.

containsRangeback to summary
public static boolean containsRange(Range bigger, Range smaller)

true if the smaller range is inside or equal to the bigger range. Otherwise, false.