Package ghidra.util.datastruct
Class ObjectValueRange<T>
- java.lang.Object
 - 
- ghidra.util.datastruct.ObjectValueRange<T>
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable<ObjectValueRange<T>>
public class ObjectValueRange<T> extends java.lang.Object implements java.lang.Comparable<ObjectValueRange<T>>
Associates an integer value with a numeric range. 
- 
- 
Constructor Summary
Constructors Constructor Description ObjectValueRange(long start, long end, T value)Constructor for numeric range with an associated value. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ObjectValueRange<T> otherRange)booleancontains(long index)Determines whether or not the indicated index is in the range.longgetEnd()Returns the end of the range.longgetStart()Returns the beginning of the range.TgetValue()Returns the value associated with the range. 
 - 
 
- 
- 
Constructor Detail
- 
ObjectValueRange
public ObjectValueRange(long start, long end, T value)Constructor for numeric range with an associated value.- Parameters:
 start- beginning of the rangeend- end of the rangevalue- the value to associate with the range.
 
 - 
 
- 
Method Detail
- 
getStart
public long getStart()
Returns the beginning of the range. 
- 
getEnd
public long getEnd()
Returns the end of the range. 
- 
getValue
public T getValue()
Returns the value associated with the range. 
- 
contains
public boolean contains(long index)
Determines whether or not the indicated index is in the range.- Parameters:
 index- the index to check- Returns:
 - true if the index is in this range.
 
 
- 
compareTo
public int compareTo(ObjectValueRange<T> otherRange)
- Specified by:
 compareToin interfacejava.lang.Comparable<T>- See Also:
 Comparable.compareTo(java.lang.Object)
 
 - 
 
 -