Class NumericAttribute
- java.lang.Object
-
- Attribute
-
- NumericAttribute
-
public class NumericAttribute extends Attribute
Stores information for a numeric attribute. A numeric attribute has a name. Its domain is the real numbers.
-
-
Constructor Summary
Constructors Constructor Description NumericAttribute()
Default constructor.NumericAttribute(java.lang.String name)
Explicit constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
size()
Returns a string representation of this NumericAttribute.java.lang.String
toString()
Returns a string representation of this NumericAttribute.boolean
validValue(java.lang.Object value)
Returns whether the specified value is valid for the numeric attribute.
-
-
-
Method Detail
-
size
public int size()
Returns a string representation of this NumericAttribute.
-
toString
public java.lang.String toString()
Returns a string representation of this NumericAttribute.
-
validValue
public boolean validValue(java.lang.Object value)
Returns whether the specified value is valid for the numeric attribute.- Specified by:
validValue
in classAttribute
- Parameters:
value
- the value for testing- Returns:
- true if the value is valid; false otherwise
-
-