Package smile.data.type
Class FloatType
java.lang.Object
smile.data.type.PrimitiveType
smile.data.type.FloatType
- All Implemented Interfaces:
Serializable
,DataType
Float data type.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface smile.data.type.DataType
DataType.ID
-
Method Summary
Methods inherited from class smile.data.type.PrimitiveType
equals, id, isNullable, name, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smile.data.type.DataType
isBoolean, isByte, isChar, isDecimal, isDouble, isFloating, isInt, isIntegral, isLong, isNumeric, isObject, isPrimitive, isShort, isString
-
Method Details
-
isFloat
public boolean isFloat()Description copied from interface:DataType
Returns true if the type is float or Float.- Returns:
- true if the type is float or Float.
-
toString
Description copied from interface:DataType
Returns the string representation of a value of the type.- Parameters:
o
- the value.- Returns:
- the string representation
-
valueOf
Description copied from interface:DataType
Returns the value from its string representation.- Parameters:
s
- the string representation of a value of this type.- Returns:
- the value.
-