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 int
compareTo(Range other)
boolean
contains(int value)
Returns true if the value is within the ranges extent.boolean
equals(java.lang.Object obj)
int
hashCode()
long
size()
Returns the range's size.java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(Range other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Range>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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.
-
-