|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.dwarf2.RangeLookupList
public class RangeLookupList
This class is used to manage data to be looked up by a range, often an address range. This class currently does little error checking, and behavior is undefined in situations where ranges overlap.
Copyright (c) 2007 Cmpware, Inc. All Rights Reserved.
| Nested Class Summary | |
|---|---|
class |
RangeLookupList.RangeEntry
This class describes a range entry. |
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
protected java.util.ArrayList |
l
The sorted range list |
protected com.cmpware.elf.dwarf2.RangeLookupList.RangeStartCompare |
rangeStartComparator
A Range Start comparator class to sort range entries by range start |
| Constructor Summary | |
|---|---|
RangeLookupList()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int i)
This method returns element i in the Range Lookup list. |
java.lang.Object |
lookup(long i)
This method returns the object associated with the given range. |
void |
put(long rangeStart,
long rangeEnd,
java.lang.Object o)
This method adds a new object to the range lookup list. |
int |
size()
This method returns the number of elements in this range lookup list. |
java.lang.String |
toString()
This method retuns a string representation of the range lookup list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
protected com.cmpware.elf.dwarf2.RangeLookupList.RangeStartCompare rangeStartComparator
protected java.util.ArrayList l
| Constructor Detail |
|---|
public RangeLookupList()
| Method Detail |
|---|
public void put(long rangeStart,
long rangeEnd,
java.lang.Object o)
rangeStart - the low range value for the lookup.rangeEnd - the high range value for the lookup.o - the object returned by the lookup.public java.lang.Object lookup(long i)
i - the value to be search for.
public int size()
public java.lang.Object get(int i)
i - the index.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||