Esempio n. 1
0
 /** {@inheritDoc} */
 @Override
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   myUnitID = (UnitID) in.readObject();
   if (in.readBoolean()) {
     myProposal = (Proposal) in.readObject();
   } else {
     myProposal = null;
   }
 }
Esempio n. 2
0
 /** {@inheritDoc} */
 @Override
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeObject(myUnitID);
   if (myProposal == null) {
     out.writeBoolean(false);
   } else {
     out.writeBoolean(true);
     out.writeObject(myProposal);
   }
 }