org.eclipse.nebula.widgets.nattable.coordinate
Class Range
java.lang.Object
org.eclipse.nebula.widgets.nattable.coordinate.Range
public class Range
- extends Object
Represents an Range of numbers.
Example a Range of selected rows: 1 - 100
Ranges are inclusive of their start value and not inclusive of their end value, i.e. start <= x < end
Constructor Summary |
Range(int start,
int end)
|
start
public int start
end
public int end
Range
public Range(int start,
int end)
size
public int size()
contains
public boolean contains(int position)
- Returns:
- TRUE if the range contains the given row position
overlap
public boolean overlap(Range range)
getMembers
public Set<Integer> getMembers()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
sortByStart
public static void sortByStart(List<Range> ranges)
Copyright © 2014. All rights reserved.