private static TimestampContainer readTimestampContainer(StoreReader sr, StoreClassRegister scr) { if (sr.readBoolean()) { return new SimpleTimestampContainer(new Date(sr.readLong())); } else { return null; } }
private static TimestampContainer readTimestampContainer(StoreReader sr, StoreClassRegister scr) { if (sr.readBoolean()) { return new SimpleTimestampContainer(new Date(sr.readLong())); } else { return null; } }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ @SuppressWarnings("unchecked") public EntityHistory(StoreReader sr, StoreClassRegister scr) { entity = (T) new GenericObjectReader(sr, scr).readObject(); visible = sr.readBoolean(); }
/** * Creates a new instance. * * @param sr * The store to read state from. * @param scr * Maintains the mapping between classes and their identifiers * within the store. */ @SuppressWarnings("unchecked") public EntityHistory(StoreReader sr, StoreClassRegister scr) { entity = (T) new GenericObjectReader(sr, scr).readObject(); visible = sr.readBoolean(); }