public class DhcpInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DhcpInfo> |
CREATOR
Implement the Parcelable interface
|
int |
dns1 |
int |
dns2 |
int |
gateway |
int |
ipAddress |
int |
leaseDuration |
int |
netmask |
int |
serverAddress |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
DhcpInfo() |
DhcpInfo(DhcpInfo source)
copy constructor
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Implement the Parcelable interface
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface
|
public int ipAddress
public int gateway
public int netmask
public int dns1
public int dns2
public int serverAddress
public int leaseDuration
public static final Parcelable.Creator<DhcpInfo> CREATOR
public DhcpInfo()
public DhcpInfo(DhcpInfo source)
public String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.