Class ObjectType
java.lang.Object
smile.data.type.ObjectType
- All Implemented Interfaces:
Serializable, DataType
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataType
DataType.ID -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?> Returns the class of objects.id()Returns the type ID enum.booleanReturns true if the type is boolean or Boolean.booleanisByte()Returns true if the type is byte or Byte.booleanisChar()Returns true if the type is char or Char.booleanisDouble()Returns true if the type is double or Double.booleanisFloat()Returns true if the type is float or Float.booleanisInt()Returns true if the type is int or Integer.booleanisLong()Returns true if the type is long or Long.booleanisObject()Returns true if the type is ObjectType.booleanisShort()Returns true if the type is short or Short.name()Returns the type name used in external catalogs.toString()Returns the string representation of a value of the type.Returns the value from its string representation.Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DataType
isDecimal, isFloating, isIntegral, isNullable, isNumeric, isPrimitive, isString
-
Method Details
-
getObjectClass
Returns the class of objects. This is different from Object.getClass(), which returns ObjectType.class.- Returns:
- the class of objects.
-
isObject
-
isBoolean
-
isChar
-
isByte
-
isShort
-
isInt
-
isLong
-
isFloat
-
isDouble
-
name
-
id
Description copied from interface:DataTypeReturns the type ID enum. -
toString
-
toString
-
valueOf
-
equals
-