private static Entry entryFromJsonObject(JSONObject object) { String file = object.get(ManifestConstants.FILE).toString(); String hash = object.get(ManifestConstants.HASH).toString(); String time = object.get(ManifestConstants.TIME).toString(); String size = object.get(ManifestConstants.SIZE).toString(); String type = object.get(ManifestConstants.TYPE).toString(); EntryStatus statType = EntryStatus.valueOf(type); return new Entry( file, hash, Util.longFromStringWithoutThrow(time), Util.longFromStringWithoutThrow(size), statType); }