@Test public void testGeneralAlphabetDefault() { DataCoding dataCoding = new GeneralDataCoding(Alphabet.ALPHA_DEFAULT); assertEquals(dataCoding.toByte(), (byte) 0x00); }
public byte toByte() { byte value = compressed ? DataCodingFactory00xx.MASK_COMPRESSED : 0; value |= alphabet.value(); if (messageClass != null) { value |= DataCodings.MASK_CONTAIN_MESSAGE_CLASS; value |= messageClass.value(); } return value; }
GeneralDataCoding implements DataCoding { public byte toByte() { byte value = compressed ? DataCodingFactory00xx.MASK_COMPRESSED : 0; value |= alphabet.value(); if (messageClass != null) { value |= DataCodings.MASK_CONTAIN_MESSAGE_CLASS; value |= messageClass.value(); } return value; } }
GeneralDataCoding implements DataCoding { public byte toByte() { byte value = compressed ? DataCodingFactory00xx.MASK_COMPRESSED : 0; value |= alphabet.value(); if (messageClass != null) { value |= DataCodings.MASK_CONTAIN_MESSAGE_CLASS; value |= messageClass.value(); } return value; } GeneralDataCoding();  GeneralDataCoding(Alphabet alphabet);  GeneralDataCoding(Alphabet alphabet, ESMClass esmClass);  GeneralDataCoding(Alphabet alphabet, MessageClass messageClass,
            boolean compressed); }
GeneralDataCoding implements DataCoding { public byte toByte() { byte value = compressed ? DataCodingFactory00xx.MASK_COMPRESSED : 0; value |= alphabet.value(); if (messageClass != null) { value |= DataCodings.MASK_CONTAIN_MESSAGE_CLASS; value |= messageClass.value(); } return value; } GeneralDataCoding();  GeneralDataCoding(Alphabet alphabet);  GeneralDataCoding(Alphabet alphabet, ESMClass esmClass);  GeneralDataCoding(Alphabet alphabet, MessageClass messageClass,
            boolean compressed); Alphabet getAlphabet(); MessageClass getMessageClass(); boolean isCompressed(); byte toByte(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
GeneralDataCoding implements DataCoding { public byte toByte() { byte value = compressed ? DataCodingFactory00xx.MASK_COMPRESSED : 0; value |= alphabet.value(); if (messageClass != null) { value |= DataCodings.MASK_CONTAIN_MESSAGE_CLASS; value |= messageClass.value(); } return value; } GeneralDataCoding();  GeneralDataCoding(Alphabet alphabet);  GeneralDataCoding(Alphabet alphabet, ESMClass esmClass);  GeneralDataCoding(Alphabet alphabet, MessageClass messageClass,
            boolean compressed); Alphabet getAlphabet(); MessageClass getMessageClass(); boolean isCompressed(); byte toByte(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static final GeneralDataCoding DEFAULT; }