Package ghidra.util.datastruct
Class Range
- java.lang.Object
 - 
- ghidra.util.datastruct.Range
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Range(int min, int max)Creates a range whose extent is from min to max. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Range other)booleancontains(int value)Returns true if the value is within the ranges extent.booleanequals(java.lang.Object obj)inthashCode()longsize()Returns the range's size.java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
compareTo
public int compareTo(Range other)
- Specified by:
 compareToin interfacejava.lang.Comparable<Range>
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
contains
public boolean contains(int value)
Returns true if the value is within the ranges extent.- Parameters:
 value- the value to check.
 
- 
size
public long size()
Returns the range's size. 
 - 
 
 -