public void writeToParcel(Parcel dest,int flags){
  if (address != null) {
    dest.writeByte((byte)1);
    dest.writeByteArray(address.getAddress());
    dest.writeInt(prefixLength);
  }
 else {
    dest.writeByte((byte)0);
  }
}

public void writeToParcel ( Parcel dest , int flags ) { if ( address != null ) { dest . writeByte ( ( byte ) 1 ) ; dest . writeByteArray ( address . getAddress ( ) ) ; dest . writeInt ( prefixLength ) ; } else { dest . writeByte ( ( byte ) 0 ) ; } }
implement the parcelable interface .
