/** * Deserializes the serialized {@link CopyEntity} string. * * @param serialized string * @return a new instance of {@link CopyEntity} */ public static CopyEntity deserialize(String serialized) { return GSON.fromJson(getSerializedWithNewPackage(serialized), CopyEntity.class); }
/** * Deserializes the serialized {@link List} of {@link CopyEntity} string. * Used together with {@link #serializeList(List)} * * @param serialized string * @return a new {@link List} of {@link CopyEntity}s */ public static List<CopyEntity> deserializeList(String serialized) { return GSON.fromJson(getSerializedWithNewPackage(serialized), new TypeToken<List<CopyEntity>>() {}.getType()); }
/** * Deserializes the serialized {@link CopyEntity} string. * * @param serialized string * @return a new instance of {@link CopyEntity} */ public static CopyEntity deserialize(String serialized) { return GSON.fromJson(getSerializedWithNewPackage(serialized), CopyEntity.class); }
/** * Deserializes the serialized {@link List} of {@link CopyEntity} string. * Used together with {@link #serializeList(List)} * * @param serialized string * @return a new {@link List} of {@link CopyEntity}s */ public static List<CopyEntity> deserializeList(String serialized) { return GSON.fromJson(getSerializedWithNewPackage(serialized), new TypeToken<List<CopyEntity>>() {}.getType()); }