public final class GenericDigitsWithStarHash extends GenericDigits
The encoding to semi-octets by encoding schemes BCD_ODD and BCD_EVEN,
unless overridden by a particular StringCodec,
is as tabulated below.
| Decoded character | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | * | # | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Encoded hexadecimal | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
GenericDigits.EncodingScheme, GenericDigits.TypeOfDigits| Modifier and Type | Field and Description |
|---|---|
static BCDStringCodec<GenericDigits> |
ADDRESS_CODEC_BCD
BCD string codec for field Address.
|
static BinaryStringCodec<GenericDigits> |
ADDRESS_CODEC_BINARY
Binary string codec for field Address.
|
static IA5StringCodec<GenericDigits> |
ADDRESS_CODEC_IA5
ASCII/ISO646-US string codec for field Address.
|
Address_value, EncodingScheme_value, TypeOfDigits_valueisDecodedencodedFIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
GenericDigitsWithStarHash()
Constructs a new GenericDigitsWithStarHash object with no fields set.
|
GenericDigitsWithStarHash(byte[] data)
Constructs a new GenericDigitsWithStarHash object from network-encoded data.
|
GenericDigitsWithStarHash(byte[] data,
int start,
int len)
Constructs a new GenericDigitsWithStarHash object from part of network-encoded data.
|
GenericDigitsWithStarHash(DataInput in)
Constructs a new GenericDigitsWithStarHash object from data deserialized from a stream that was written by
GenericDigits.toStream(DataOutput). |
GenericDigitsWithStarHash(GenericDigits.EncodingScheme encodingScheme,
GenericDigits.TypeOfDigits typeOfDigits,
String address)
Constructs a new GenericDigitsWithStarHash object from given values for all fields.
|
GenericDigitsWithStarHash(GenericDigits.EncodingScheme encodingScheme,
GenericDigits.TypeOfDigits typeOfDigits,
String address,
StringCodec<GenericDigits> Address_codec)
Constructs a new GenericDigitsWithStarHash object from given arguments,
using the given codecs for encoding fields of type String.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericDigitsWithStarHash |
copyOf(GenericDigits from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
|
StringCodec<GenericDigits> |
getAddressCodec()
Gets the codec used for field Address.
|
GenericDigitsWithStarHash |
setAddress(String value)
Sets the value of the address.
|
GenericDigitsWithStarHash |
setAddress(String value,
StringCodec<GenericDigits> codec)
Sets the value of the address using the given codec.
|
GenericDigitsWithStarHash |
setAddressEncoded(EncodedStringWithIndicators encoded)
Sets the encoded value of the address to a clone of the given EncodedStringIndicators.
|
GenericDigitsWithStarHash |
setEncodingScheme(GenericDigits.EncodingScheme value)
Sets the value of the encoding scheme.
|
GenericDigitsWithStarHash |
setTypeOfDigits(GenericDigits.TypeOfDigits value)
Sets the value of the type of digits.
|
checkFieldsSet, clone, decode, encode, encodedIsInvalid, getAddress, getAddress, getAddressEncoded, getContainedLength, getEncodedForm, getEncodingScheme, getFieldAccessors, getFieldsMap, getTypeOfDigits, hasAddress, hasEncodingScheme, hasTypeOfDigits, toStreamcheckDecode, checkModifyAndDecodeequals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic static final BCDStringCodec<GenericDigits> ADDRESS_CODEC_BCD
public static final BinaryStringCodec<GenericDigits> ADDRESS_CODEC_BINARY
public static final IA5StringCodec<GenericDigits> ADDRESS_CODEC_IA5
public GenericDigitsWithStarHash()
public GenericDigitsWithStarHash(byte[] data)
data - network-encoded dataNullPointerException - if data is nullpublic GenericDigitsWithStarHash(byte[] data,
int start,
int len)
start and is len bytes long.
The data is not decoded and might not be decodable.data - network-encoded datastart - starting offset of network-encoded data in byte arraylen - default length if not predictableNullPointerException - if data is nullIllegalArgumentException - if len is negativepublic GenericDigitsWithStarHash(GenericDigits.EncodingScheme encodingScheme, GenericDigits.TypeOfDigits typeOfDigits, String address)
encodingScheme - the encoding schemetypeOfDigits - the type of digitsaddress - the addresspublic GenericDigitsWithStarHash(GenericDigits.EncodingScheme encodingScheme, GenericDigits.TypeOfDigits typeOfDigits, String address, StringCodec<GenericDigits> Address_codec)
encodingScheme - the encoding schemetypeOfDigits - the type of digitsaddress - the addressAddress_codec - StringCodec for addresspublic GenericDigitsWithStarHash(DataInput in) throws IOException
GenericDigits.toStream(DataOutput).in - the stream to read fromEOFException - if reading is pre-empted by end-of-fileIOException - if the data cannot be readpublic GenericDigitsWithStarHash setEncodingScheme(GenericDigits.EncodingScheme value) throws IllegalStateException
setEncodingScheme in class GenericDigitsvalue - EncodingScheme representation of the encoding schemeIllegalStateExceptionpublic GenericDigitsWithStarHash setTypeOfDigits(GenericDigits.TypeOfDigits value) throws IllegalStateException
setTypeOfDigits in class GenericDigitsvalue - TypeOfDigits representation of the type of digitsIllegalStateExceptionpublic GenericDigitsWithStarHash setAddress(String value) throws IllegalStateException
setAddress in class GenericDigitsvalue - String representation of the addressIllegalStateExceptionpublic GenericDigitsWithStarHash setAddress(String value, StringCodec<GenericDigits> codec) throws IllegalArgumentException
setAddress in class GenericDigitsvalue - String representation of the addresscodec - StringCodec to use for encodingIllegalArgumentExceptionpublic GenericDigitsWithStarHash setAddressEncoded(EncodedStringWithIndicators encoded)
setAddressEncoded in class GenericDigitsencoded - EncodedStringWithIndicators representation of the addresspublic static GenericDigitsWithStarHash copyOf(GenericDigits from)
from - the object from which to copypublic StringCodec<GenericDigits> getAddressCodec()
getAddressCodec in class GenericDigits