com.partnersoft.maps.model
Class Lookup
java.lang.Object
com.partnersoft.maps.model.Lookup
public class Lookup
- extends java.lang.Object
A String-indexed set of tabular data.
- Author:
- Paul Reavis
Copyright 2005 Partner Software, Inc.
|
Constructor Summary |
Lookup(java.util.ArrayList fieldNames,
java.util.List keys,
java.util.List records)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lookup
public Lookup(java.util.ArrayList fieldNames,
java.util.List keys,
java.util.List records)
lookup
public Naming lookup(java.lang.String name)
lookupAll
public java.util.ArrayList lookupAll(java.lang.String name)
getSize
public int getSize()
getKeyAt
public java.lang.String getKeyAt(int index)
getRecordAt
public java.util.ArrayList getRecordAt(int index)
indexOf
public int indexOf(java.lang.String name)
closestIndexTo
public int closestIndexTo(java.lang.String name)
indexRangeFor
public int[] indexRangeFor(java.lang.String name)
- If the find item has duplicates, you might want to know what the
range is. This returns the first and last entries with the
same name. They will match if there's only one, and they'll both be -1 if there's no match.