@Test public void testDefault() { SimpleDataCoding dataCoding = new SimpleDataCoding(); byte expected = (byte)0xf1; assertEquals(dataCoding.toByte(), expected); DataCoding buildedInstance = DataCodings.newInstance(dataCoding.toByte()); assertEquals(buildedInstance, dataCoding); }
public byte toByte() { byte value = (byte)0xf0; value |= alphabet.value(); value |= messageClass.value(); return value; }
SimpleDataCoding implements DataCoding { public byte toByte() { byte value = (byte)0xf0; value |= alphabet.value(); value |= messageClass.value(); return value; } }
SimpleDataCoding implements DataCoding { public byte toByte() { byte value = (byte)0xf0; value |= alphabet.value(); value |= messageClass.value(); return value; } SimpleDataCoding();  SimpleDataCoding(Alphabet alphabet, MessageClass messageClass); }
SimpleDataCoding implements DataCoding { public byte toByte() { byte value = (byte)0xf0; value |= alphabet.value(); value |= messageClass.value(); return value; } SimpleDataCoding();  SimpleDataCoding(Alphabet alphabet, MessageClass messageClass); Alphabet getAlphabet(); MessageClass getMessageClass(); byte toByte(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
SimpleDataCoding implements DataCoding { public byte toByte() { byte value = (byte)0xf0; value |= alphabet.value(); value |= messageClass.value(); return value; } SimpleDataCoding();  SimpleDataCoding(Alphabet alphabet, MessageClass messageClass); Alphabet getAlphabet(); MessageClass getMessageClass(); byte toByte(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }