de.lmu.ifi.dbs.elki.converter
Class WekaStringAttribute
java.lang.Object
de.lmu.ifi.dbs.elki.converter.WekaAbstractAttribute<WekaStringAttribute>
de.lmu.ifi.dbs.elki.converter.WekaStringAttribute
- All Implemented Interfaces:
- WekaAttribute<WekaStringAttribute>, Comparable<WekaStringAttribute>
public class WekaStringAttribute
- extends WekaAbstractAttribute<WekaStringAttribute>
A string attribute.
- Author:
- Arthur Zimek
value
private String value
- Holds the value.
WekaStringAttribute
public WekaStringAttribute(String value)
- Sets the given value as a string value.
- Parameters:
value
- the value of this attribute
getValue
public String getValue()
- Description copied from interface:
WekaAttribute
- Returns the value as String representation.
- Returns:
- a representation of the attribute value as String
- See Also:
WekaAttribute.getValue()
compareTo
public int compareTo(WekaStringAttribute o)
- Two string attributes are compared by their values.
- See Also:
Comparable.compareTo(java.lang.Object)