@Test public void constructor2() { byte b1 = 0x00; byte b2 = 0x00; GroupAddress addr = new GroupAddress(b1, b2); byte[] bytes = addr.asByteArray(); Assert.assertTrue(bytes[0] == b1); Assert.assertTrue(bytes[1] == b2); b1 = 0x01; b2 = 0x01; addr = new GroupAddress(b1, b2); bytes = addr.asByteArray(); Assert.assertTrue(bytes[0] == b1); Assert.assertTrue(bytes[1] == b2); b1 = -128; b2 = -128; addr = new GroupAddress(b1, b2); bytes = addr.asByteArray(); Assert.assertTrue(bytes[0] == b1); Assert.assertTrue(bytes[1] == b2); b1 = -1; b2 = -1; addr = new GroupAddress(b1, b2); bytes = addr.asByteArray(); Assert.assertTrue(bytes[0] == b1); Assert.assertTrue(bytes[1] == b2); b1 = 127; b2 = 127; addr = new GroupAddress(b1, b2); bytes = addr.asByteArray(); Assert.assertTrue(bytes[0] == b1); Assert.assertTrue(bytes[1] == b2); }
byte[] asByteArray() { return new byte[] { hiByte, loByte }; }
GroupAddress { byte[] asByteArray() { return new byte[] { hiByte, loByte }; } }
GroupAddress { byte[] asByteArray() { return new byte[] { hiByte, loByte }; } GroupAddress(String groupAddress);   GroupAddress(byte hibyte, byte lobyte); }
GroupAddress { byte[] asByteArray() { return new byte[] { hiByte, loByte }; } GroupAddress(String groupAddress);   GroupAddress(byte hibyte, byte lobyte); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
GroupAddress { byte[] asByteArray() { return new byte[] { hiByte, loByte }; } GroupAddress(String groupAddress);   GroupAddress(byte hibyte, byte lobyte); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }