X-Git-Url: https://git.hedgecode.org/?p=snooker-score-api.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fsnooker%2Fjson%2FJsonCollectionEntity.java;h=ef67ff6a72cd899f0ae9b7c7d6b327d9c4d9e905;hp=322332303c1b23344ee72efe2b7038a9e002fd6c;hb=edb206228987f506c5dc7a20585537b71f7a2e9d;hpb=20a8093246c9bb7def0c07a03bceff6f31412f35 diff --git a/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java b/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java index 3223323..ef67ff6 100644 --- a/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java +++ b/src/main/java/org/hedgecode/snooker/json/JsonCollectionEntity.java @@ -16,6 +16,7 @@ package org.hedgecode.snooker.json; +import java.io.Serializable; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; @@ -33,20 +34,24 @@ import org.hedgecode.snooker.api.IdEntity; * @author Dmitry Samoshin aka gotty */ public abstract class JsonCollectionEntity - implements CollectionEntity, JsonSerializable + implements CollectionEntity, Serializable { private final Map entities = new LinkedHashMap<>(); protected JsonCollectionEntity(E[] entities) { for (E entity : entities) { if (entity != null) - this.entities.put(entity.getId(), entity); + this.entities.put( + entity.getId(), entity + ); } } protected JsonCollectionEntity(List entities) { for (E entity : entities) { - this.entities.put(entity.getId(), entity); + this.entities.put( + entity.getId(), entity + ); } }