public class IntegerDatatype extends AbstractDatatype<Integer>
Datatype.Builtin, Datatype.Default
Constructor and Description |
---|
IntegerDatatype(int byteSize) |
Modifier and Type | Method and Description |
---|---|
int |
getByteSize() |
int |
getMaxValue() |
int |
getMinValue() |
boolean |
isHandlingJavaType(Class type) |
boolean |
isValid(Integer value) |
Integer |
valueOf(String s)
Transforms a string representation into a value of the supported type.
|
getBuiltin, getDisplayString, getString, getValueType, setBuiltin, toString
public boolean isHandlingJavaType(Class type)
isHandlingJavaType
in interface Datatype<Integer>
isHandlingJavaType
in class AbstractDatatype<Integer>
true
if this datatype can handle values of the given Java type.public Integer valueOf(String s) throws InvalidValueException
Datatype
valueOf
in interface Datatype<Integer>
valueOf
in class AbstractDatatype<Integer>
s
- The string representation of a value.null
if the string was null
or empty.InvalidValueException
- If the string couldn't be parsed.public boolean isValid(Integer value)
public int getMinValue()
public int getMaxValue()
public int getByteSize()
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.