public class SingleFeatureValue extends FeatureValue
| Modifier and Type | Field and Description |
|---|---|
protected int |
indexCode |
protected java.lang.String |
symbol |
protected double |
value |
nullValuefunction| Constructor and Description |
|---|
SingleFeatureValue(Function function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIndexCode() |
java.lang.String |
getSymbol() |
double |
getValue() |
int |
hashCode() |
boolean |
isMultiple() |
int |
nFeatureValues() |
void |
reset() |
void |
setIndexCode(int code) |
void |
setSymbol(java.lang.String symbol) |
void |
setValue(double value) |
java.lang.String |
toString() |
void |
update(int indexCode,
java.lang.String symbol,
boolean nullValue,
double value) |
isNullValue, setNullValuegetFunction, setFunctionprotected int indexCode
protected java.lang.String symbol
protected double value
public SingleFeatureValue(Function function)
public void reset()
reset in class FeatureValuepublic void update(int indexCode, java.lang.String symbol, boolean nullValue, double value)
public int getIndexCode()
public void setIndexCode(int code)
public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
public double getValue()
public void setValue(double value)
public boolean isMultiple()
isMultiple in class FeatureValuepublic int nFeatureValues()
nFeatureValues in class FeatureValuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class FeatureValuepublic java.lang.String toString()
toString in class FeatureValueCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.