@Test public void testSerialize() throws Exception { ScoreValue theValue = new ScoreValue(13); Map<String, Object> theData = theValue.serialize(); assertEquals(1, theData.size()); assertEquals("13", theData.get("score")); }
@Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("score", Long.toString(score)); return theResult; }
ScoreValue implements Reflectable, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("score", Long.toString(score)); return theResult; } }
ScoreValue implements Reflectable, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("score", Long.toString(score)); return theResult; } ScoreValue();  ScoreValue(long aScore); }
ScoreValue implements Reflectable, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("score", Long.toString(score)); return theResult; } ScoreValue();  ScoreValue(long aScore); @ReflectiveMethod ScoreValue incrementBy(long aAmount); @ReflectiveMethod ScoreValue resetToZero(); Long get(); @Override ScoreValueClassInformation getClassInformation(); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, Object> serialize(); static ScoreValue deserialize(Map<String, Object> aSerializesData); }
ScoreValue implements Reflectable, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("score", Long.toString(score)); return theResult; } ScoreValue();  ScoreValue(long aScore); @ReflectiveMethod ScoreValue incrementBy(long aAmount); @ReflectiveMethod ScoreValue resetToZero(); Long get(); @Override ScoreValueClassInformation getClassInformation(); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, Object> serialize(); static ScoreValue deserialize(Map<String, Object> aSerializesData); final long score; }