Package gov.nasa.worldwind.util
Class Range
- java.lang.Object
-
- gov.nasa.worldwind.util.Range
-
public class Range extends java.lang.Object
Range describes a contiguous region in a series of items.
-
-
Constructor Summary
Constructors Constructor Description Range(int location, int length)
Creates a new range with the specified start index and number of items.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int location)
Returns a boolean value indicating whether or not the specified location is in this range.
-
-
-
Method Detail
-
contains
public boolean contains(int location)
Returns a boolean value indicating whether or not the specified location is in this range. The location is in this range if it's greater than or equal tothis.location
and less thanthis.location + this.length
.- Parameters:
location
- the location to test.- Returns:
- true if the location is in this range, otherwise false.
-
-