public class ShortValue extends NumberValue<Short>
PATTERN_BASIC_ISO_DATE, PATTERN_CURRENCY, PATTERN_FULL, PATTERN_INTEGER, PATTERN_ISO_DATE, PATTERN_ISO_DATE_TIME, PATTERN_ISO_INSTANT, PATTERN_ISO_LOCAL_DATE, PATTERN_ISO_LOCAL_DATE_TIME, PATTERN_ISO_LOCAL_TIME, PATTERN_ISO_OFFSET_DATE, PATTERN_ISO_OFFSET_DATE_TIME, PATTERN_ISO_OFFSET_TIME, PATTERN_ISO_ORDINAL_DATE, PATTERN_ISO_TIME, PATTERN_ISO_WEEK_DATE, PATTERN_ISO_ZONED_DATE_TIME, PATTERN_LONG, PATTERN_MEDIUM, PATTERN_PERCENT, PATTERN_RFC_1123_DATE_TIME, PATTERN_SHORT, RESOLVER_LENIENT, RESOLVER_LENIENT_NO_BRACKETS, RESOLVER_SMART, RESOLVER_SMART_NO_BRACKETS, RESOLVER_STRICT, RESOLVER_STRICT_NO_BRACKETS
Constructor and Description |
---|
ShortValue() |
Modifier and Type | Method and Description |
---|---|
Short |
convert(Object value,
Value.Type oldType,
LocaleInfo localeInfo)
Converts a value from another type.
|
Short |
createDefault()
Creates the default value object for the data type.
|
String |
getDescription()
Gets the description of the type, used for the Designer.
|
Class<Short> |
getValueClass()
Gets the class of the value.
|
Value.Type |
getValueType()
Gets the value type.
|
Short |
parse(String value)
Creates a Value object from a String using a specified pattern and locale.
|
asLong, getFormatter, isRightAligned, load, parse, save, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asLongCast, saveCast, toStringCast, toStringForced
public final Value.Type getValueType()
public String getDescription()
public Short createDefault()
public Short parse(String value) throws NumberFormatException
parse
in interface IValueObject<Short>
parse
in class NumberValue<Short>
value
- The value, never null.NumberFormatException
- If the value could not be parsed.public Short convert(Object value, Value.Type oldType, LocaleInfo localeInfo) throws Exception
value
- The value to convert.oldType
- The old type, null for not defined.localeInfo
- The locale information, null to look-up from current thread or
if not found, for system default.Exception
- For other errors.ParseException
- If this conversion fails.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.