|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.analysis.LAAnalysis
net.logAnalyzer.analysis.SingleValueAnalysis
This analysis result class contains an hashtable of values.
Constructor Summary | |
SingleValueAnalysis(LAAnalyzer analyzer,
java.lang.String name)
Create a new analysis. |
Method Summary | |
double |
addToDouble(java.lang.Comparable key,
double value)
Add the specified value to the specified key. |
double |
addToDouble(java.lang.Comparable key,
long value)
Add the specified value to the specified key. |
long |
addToLong(java.lang.Comparable key,
double value)
Add the specified value to the specified key. |
long |
addToLong(java.lang.Comparable key,
long value)
Add the specified value to the specified key. |
void |
change(java.lang.Comparable oldKey,
java.lang.Comparable newKey)
Change the specified old key to the new key. |
java.util.Date |
getDate(java.lang.Comparable key)
Return the resulting value associated to the specified key. |
java.util.Date |
getDate(int index)
Return the resulting value associated to the specified key. |
double |
getDouble(java.lang.Comparable key)
Return the resulting value associated to the specified key. |
double |
getDouble(int index)
Return the resulting value associated to the specified key. |
long |
getLong(java.lang.Comparable key)
Return the resulting value associated to the specified key. |
long |
getLong(int index)
Return the resulting value associated to the specified key. |
java.lang.String |
getName()
Return the value name. |
java.lang.String |
getString(java.lang.Comparable key)
Return the resulting value associated to the specified key. |
java.lang.String |
getString(int index)
Return the resulting value associated to the specified key. |
java.lang.Object |
getValue(java.lang.Comparable key)
Return the resulting value associated to the specified key. |
java.lang.Object |
getValue(int index)
Return the resulting value associated to the specified key. |
java.util.Date |
put(java.lang.Comparable key,
java.util.Date value)
Set the specified value to the current value. |
double |
put(java.lang.Comparable key,
double value)
Set the specified value to the current value. |
long |
put(java.lang.Comparable key,
long value)
Set the specified value to the current value. |
java.lang.String |
put(java.lang.Comparable key,
java.lang.String value)
Set the specified value to the current value. |
void |
remove(java.lang.Comparable key)
Remove the specified key of the analysis. |
void |
remove(int keyIndex)
Remove the key at the specified index of the analysis. |
void |
sortDESC()
Sort results form greatest to lowest. |
Methods inherited from class net.logAnalyzer.analysis.LAAnalysis |
changeKey, containsKey, getAnalyzer, getDateFormat, getDateValue, getDoubleValue, getKey, getKeys, getLongValue, getObjectValue, getStringKey, getStringValue, getValueName, getValueNameIndex, getValuesNames, moveKeyAt, putDateValue, putDoubleValue, putLongValue, putStringValue, removeKey, removeKey, size, sortByValueASC, sortByValueDESC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SingleValueAnalysis(LAAnalyzer analyzer, java.lang.String name)
analyzer
- Analyzer.name
- Name of the value.Method Detail |
public double addToDouble(java.lang.Comparable key, double value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putDoubleValue(Comparable, int, double)
,
LAAnalysis.getDoubleValue(Comparable, int)
public double addToDouble(java.lang.Comparable key, long value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putDoubleValue(Comparable, int, double)
,
LAAnalysis.getDoubleValue(Comparable, int)
public long addToLong(java.lang.Comparable key, double value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putLongValue(Comparable, int, long)
,
LAAnalysis.getLongValue(Comparable, int)
public long addToLong(java.lang.Comparable key, long value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putLongValue(Comparable, int, long)
,
LAAnalysis.getLongValue(Comparable, int)
public java.util.Date put(java.lang.Comparable key, java.util.Date value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putDateValue(Comparable, int, Date)
public double put(java.lang.Comparable key, double value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putDoubleValue(Comparable, int, double)
public long put(java.lang.Comparable key, long value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putLongValue(Comparable, int, long)
public java.lang.String put(java.lang.Comparable key, java.lang.String value)
key
- Key of the value to change.value
- Value to add.
LAAnalysis.putStringValue(Comparable, int, String)
public java.util.Date getDate(int index)
index
- Index of the value.
LAAnalysis.getDateValue(Comparable, int)
public java.util.Date getDate(java.lang.Comparable key)
key
- Key of the value.
LAAnalysis.getDateValue(Comparable, int)
public double getDouble(int index)
index
- Index of the value.
LAAnalysis.getDoubleValue(Comparable, int)
public double getDouble(java.lang.Comparable key)
key
- Key of the value.
LAAnalysis.getDoubleValue(Comparable, int)
public long getLong(int index)
index
- Index of the value.
LAAnalysis.getLongValue(Comparable, int)
public long getLong(java.lang.Comparable key)
key
- Key of the value.
LAAnalysis.getLongValue(Comparable, int)
public java.lang.String getString(int index)
index
- Index of the value.
LAAnalysis.getStringValue(Comparable, int)
public java.lang.String getString(java.lang.Comparable key)
key
- Key of the value.
LAAnalysis.getStringValue(Comparable, int)
public java.lang.Object getValue(int index)
index
- Index of the value.
LAAnalysis.getObjectValue(Comparable, int)
public java.lang.Object getValue(java.lang.Comparable key)
key
- Key of the value.
LAAnalysis.getObjectValue(Comparable, int)
public java.lang.String getName()
LAAnalysis.getValueName(int)
public void change(java.lang.Comparable oldKey, java.lang.Comparable newKey)
oldKey
- Key to change.newKey
- New key.public void remove(java.lang.Comparable key)
key
- Key to remove.public void remove(int keyIndex)
keyIndex
- Key index to remove.public void sortDESC()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |