Morpher
public final class ShortMorpher extends AbstractIntegerMorpher
Constructor | Description |
---|---|
ShortMorpher() |
|
ShortMorpher(short defaultValue) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
short |
getDefaultValue() |
Returns the default value for this Morpher.
|
int |
hashCode() |
|
short |
morph(Object value) |
Morphs the input object into an output object of the supported type.
|
Class |
morphsTo() |
Returns the target Class for conversion.
|
getIntegerValue
isUseDefault, supports
public ShortMorpher()
public ShortMorpher(short defaultValue)
defaultValue
- return value if the value to be morphed is nullpublic short getDefaultValue()
public short morph(Object value)
value
- The input value to be morphedMorphException
- if conversion cannot be performed successfullyCopyright © 2006–2019. All rights reserved.