X-Git-Url: https://git.hedgecode.org/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fhedgecode%2Fsnooker%2Fjson%2FJsonCollectionEntity.java;h=ef67ff6a72cd899f0ae9b7c7d6b327d9c4d9e905;hb=5f3c185a78588a9d4f6a5f3cc459571de6d80c89;hp=322332303c1b23344ee72efe2b7038a9e002fd6c;hpb=8a35619be41b2db6d339f8f0a7f3ba0fc1ca1ed4;p=snooker-score-api.git 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 + ); } }