@Override public MutableAttachments newMutableAttachments() { return new AttachmentsImpl(); } }
@SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); setAttachments((Map) in.readObject()); changeCount.set(in.read()); }
/** * @serialData attachments from {@link #getAttachments()} * @serialData changeCount from {@link #getChangeCount()} * @param out the output * @throws IOException for any error */ public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(getAttachments()); out.write(changeCount.get()); } }
@SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); setAttachments((Map) in.readObject()); changeCount.set(in.read()); }
/** * @serialData attachments from {@link #getAttachments()} * @serialData changeCount from {@link #getChangeCount()} * @param out the output * @throws IOException for any error */ public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(getAttachments()); out.write(changeCount.get()); } }
@Override public Attachments newAttachments() { return new AttachmentsImpl(); }
@Override public MutableAttachments newMutableAttachments() { return new AttachmentsImpl(); } }
@Override public Attachments newAttachments() { return new AttachmentsImpl(); }