@Test public void raw() { final JsonObject objectA = new JsonObject(); objectA.addProperty("someKey", "someValue"); final JsonObject objectB = new JsonObject(); objectB.addProperty("someOtherKey", "someValue"); final MessageExtras messageExtras = new MessageExtras(objectA); assertNull(messageExtras.getDelta()); final MessageExtras.Serializer serializer = new MessageExtras.Serializer(); final JsonElement serialised = serializer.serialize(messageExtras, null, null); assertEquals(objectA, serialised); assertNotEquals(objectB, serialised); assertNotEquals(objectB, objectA); }
public DeltaExtras getDelta() { return delta; }
MessageExtras { public DeltaExtras getDelta() { return delta; } }
MessageExtras { public DeltaExtras getDelta() { return delta; } MessageExtras(final JsonObject jsonObject); private  MessageExtras(final JsonObject jsonObject, final DeltaExtras delta); }
MessageExtras { public DeltaExtras getDelta() { return delta; } MessageExtras(final JsonObject jsonObject); private  MessageExtras(final JsonObject jsonObject, final DeltaExtras delta); DeltaExtras getDelta(); JsonObject asJsonObject(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MessageExtras { public DeltaExtras getDelta() { return delta; } MessageExtras(final JsonObject jsonObject); private  MessageExtras(final JsonObject jsonObject, final DeltaExtras delta); DeltaExtras getDelta(); JsonObject asJsonObject(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }