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