public final class ShortMorpher extends AbstractIntegerMorpher
| Modifier and Type | Field and Description |
|---|---|
private short |
defaultValue |
| Constructor and Description |
|---|
ShortMorpher() |
ShortMorpher(short defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
short |
getDefaultValue()
Returns the default value for this Morpher.
|
int |
hashCode() |
short |
morph(java.lang.Object value)
Morphs the input object into an output object of the supported type.
|
java.lang.Class |
morphsTo()
Returns the target Class for conversion.
|
getIntegerValueisUseDefault, supportspublic ShortMorpher()
public ShortMorpher(short defaultValue)
defaultValue - return value if the value to be morphed is nullpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic short getDefaultValue()
public int hashCode()
hashCode in class java.lang.Objectpublic short morph(java.lang.Object value)
value - The input value to be morphedMorphException - if conversion cannot be performed successfullypublic java.lang.Class morphsTo()
Morpher