public void writeToParcel(Parcel dest,int flags){
  dest.writeString(getInterfaceName());
  dest.writeInt(mLinkAddresses.size());
  for (  LinkAddress linkAddress : mLinkAddresses) {
    dest.writeParcelable(linkAddress,flags);
  }
  dest.writeInt(mDnses.size());
  for (  InetAddress d : mDnses) {
    dest.writeByteArray(d.getAddress());
  }
  dest.writeInt(mRoutes.size());
  for (  RouteInfo route : mRoutes) {
    dest.writeParcelable(route,flags);
  }
  if (mHttpProxy != null) {
    dest.writeByte((byte)1);
    dest.writeParcelable(mHttpProxy,flags);
  }
 else {
    dest.writeByte((byte)0);
  }
}

public void writeToParcel ( Parcel dest , int flags ) { dest . writeString ( getInterfaceName ( ) ) ; dest . writeInt ( mLinkAddresses . size ( ) ) ; for ( LinkAddress linkAddress : mLinkAddresses ) { dest . writeParcelable ( linkAddress , flags ) ; } dest . writeInt ( mDnses . size ( ) ) ; for ( InetAddress d : mDnses ) { dest . writeByteArray ( d . getAddress ( ) ) ; } dest . writeInt ( mRoutes . size ( ) ) ; for ( RouteInfo route : mRoutes ) { dest . writeParcelable ( route , flags ) ; } if ( mHttpProxy != null ) { dest . writeByte ( ( byte ) 1 ) ; dest . writeParcelable ( mHttpProxy , flags ) ; } else { dest . writeByte ( ( byte ) 0 ) ; } }
implement the parcelable interface .
