org.eclipse.nebula.widgets.nattable.coordinate
Class Range

java.lang.Object
  extended by 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


Field Summary
 int end
           
 int start
           
 
Constructor Summary
Range(int start, int end)
           
 
Method Summary
 boolean contains(int position)
           
 boolean equals(Object obj)
           
 Set<Integer> getMembers()
           
 int hashCode()
           
 boolean overlap(Range range)
           
 int size()
           
static void sortByStart(List<Range> ranges)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public int start

end

public int end
Constructor Detail

Range

public Range(int start,
             int end)
Method Detail

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.