@Test public void testEmptyRoundTrip() throws IOException { MultiTransactionRecord request = new MultiTransactionRecord(); MultiTransactionRecord decodedRequest = codeDecode(request); Assert.assertEquals(request, decodedRequest); Assert.assertEquals(request.hashCode(), decodedRequest.hashCode()); }
@Override public int hashCode() { int h = 1023; for (Op op : ops) { h = h * 25 + op.hashCode(); } return h; }
MultiTransactionRecord implements Record, Iterable<Op> { @Override public int hashCode() { int h = 1023; for (Op op : ops) { h = h * 25 + op.hashCode(); } return h; } }
MultiTransactionRecord implements Record, Iterable<Op> { @Override public int hashCode() { int h = 1023; for (Op op : ops) { h = h * 25 + op.hashCode(); } return h; } MultiTransactionRecord();  MultiTransactionRecord(Iterable<Op> ops); }
MultiTransactionRecord implements Record, Iterable<Op> { @Override public int hashCode() { int h = 1023; for (Op op : ops) { h = h * 25 + op.hashCode(); } return h; } MultiTransactionRecord();  MultiTransactionRecord(Iterable<Op> ops); @Override Iterator<Op> iterator(); void add(Op op); int size(); @Override void serialize(OutputArchive archive, String tag); @Override void deserialize(InputArchive archive, String tag); @Override boolean equals(Object o); @Override int hashCode(); }
MultiTransactionRecord implements Record, Iterable<Op> { @Override public int hashCode() { int h = 1023; for (Op op : ops) { h = h * 25 + op.hashCode(); } return h; } MultiTransactionRecord();  MultiTransactionRecord(Iterable<Op> ops); @Override Iterator<Op> iterator(); void add(Op op); int size(); @Override void serialize(OutputArchive archive, String tag); @Override void deserialize(InputArchive archive, String tag); @Override boolean equals(Object o); @Override int hashCode();  }