public class ShortLexicoder extends Object implements NumberLexicoder<Short>
| Modifier | Constructor and Description |
|---|---|
protected |
ShortLexicoder() |
| Modifier and Type | Method and Description |
|---|---|
Short |
fromByteArray(byte[] bytes)
Get the value of a byte array
|
Short |
getMaximumValue()
Get the maximum value of the range of numbers that this lexicoder can encode and decode (i.e.
|
Short |
getMinimumValue()
Get the minimum value of the range of numbers that this lexicoder can encode and decode (i.e.
|
byte[] |
toByteArray(Short value)
Get a byte[] that represents the number value.
|
public byte[] toByteArray(Short value)
NumberLexicodertoByteArray in interface NumberLexicoder<Short>value - a numberpublic Short fromByteArray(byte[] bytes)
NumberLexicoderfromByteArray in interface NumberLexicoder<Short>bytes - a byte array representing a numberpublic Short getMinimumValue()
NumberLexicodergetMinimumValue in interface NumberLexicoder<Short>public Short getMaximumValue()
NumberLexicodergetMaximumValue in interface NumberLexicoder<Short>Copyright © 2013–2022. All rights reserved.