|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.dataStructure.JbbStringLabelToIndexMap
public class JbbStringLabelToIndexMap
A simple data structures that maintains a map between a set of label and their numeric value. It can typically be used to perform some type of column name to column index conversion.
| Method Summary | |
|---|---|
void |
add(String label,
int index)
|
void |
addLabels(ArrayList<String> labels)
This is a convenience method to initialize the map by providing a list of labels by column order (e.g. |
void |
addLabelValues(ArrayList<JbbStringLabelIntValue> labelValues)
This is a convenience method to initialize the map by providing a list of LabelIntValue instances |
void |
clear()
|
int |
getIndex(String label)
|
static JbbStringLabelToIndexMap |
newInstance()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JbbStringLabelToIndexMap newInstance()
public void addLabels(ArrayList<String> labels)
throws Exception
labels -
Exception
public void addLabelValues(ArrayList<JbbStringLabelIntValue> labelValues)
throws Exception
labelValues -
Exceptionpublic void clear()
public void add(String label,
int index)
throws Exception
label - index -
Exception
public int getIndex(String label)
throws Exception
label -
Exception - if there is no such label in the map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||