/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ @Override protected Object readResolve() throws ObjectStreamException { ClusterGroupAdapter parent = (ClusterGroupAdapter)super.readResolve(); return new AgeClusterGroup(parent, isOldest); } }
/** * Reconstructs object on unmarshalling. * * @return Reconstructed object. * @throws ObjectStreamException Thrown in case of unmarshalling error. */ @Override protected Object readResolve() throws ObjectStreamException { ClusterGroupAdapter parent = (ClusterGroupAdapter)super.readResolve(); return new AgeClusterGroup(parent, isOldest); } }