Package ghidra.program.model.address
Class KeyRange
- java.lang.Object
-
- ghidra.program.model.address.KeyRange
-
public class KeyRange extends java.lang.ObjectClass for holding a range of database keys (long values)
-
-
Constructor Summary
Constructors Constructor Description KeyRange(long minKey, long maxKey)Constructs a new key range.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(long key)Tests if the given key is in the range.longlength()Return the number of keys contained within range.
-
-
-
Method Detail
-
contains
public boolean contains(long key)
Tests if the given key is in the range.- Parameters:
key- the key to test- Returns:
- true if the key is in the range, false otherwise
-
length
public long length()
Return the number of keys contained within range.- Returns:
- number of keys contained within range
-
-