public class NominalItem extends Item implements java.io.Serializable
Constructor and Description |
---|
NominalItem(Attribute att,
int valueIndex)
Constructs a new NominalItem.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compareTo)
Equals.
|
java.lang.String |
getComparisonAsString()
Get this item's comparison operator as a String.
|
java.lang.String |
getItemValueAsString()
Get this item's value as a String.
|
int |
getValueIndex()
Get the value index for this item.
|
java.lang.String |
toString(boolean freq)
A string representation of this item, (i.e.
|
compareTo, decreaseFrequency, decreaseFrequency, getAttribute, getFrequency, hashCode, increaseFrequency, increaseFrequency, toString
public NominalItem(Attribute att, int valueIndex) throws java.lang.Exception
att
- the attribute that backs the item.valueIndex
- the index of the value for this item.java.lang.Exception
- if the NominalItem can't be constructed.public int getValueIndex()
public java.lang.String getItemValueAsString()
getItemValueAsString
in class Item
public java.lang.String getComparisonAsString()
getComparisonAsString
in class Item
public java.lang.String toString(boolean freq)