Most visited

Recently visited

Added in API level 1

DhcpInfo

public class DhcpInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.net.DhcpInfo


一个用于检索DHCP请求结果的简单对象。

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public int dns1

public int dns2

public int gateway

public int ipAddress

public int leaseDuration

public int netmask

public int serverAddress

Public constructors

DhcpInfo()

Public methods

String toString()

返回对象的字符串表示形式。

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Fields

dns1

Added in API level 1
int dns1

dns2

Added in API level 1
int dns2

gateway

Added in API level 1
int gateway

ipAddress

Added in API level 1
int ipAddress

leaseDuration

Added in API level 1
int leaseDuration

netmask

Added in API level 1
int netmask

serverAddress

Added in API level 1
int serverAddress

Public constructors

DhcpInfo

Added in API level 1
DhcpInfo ()

Public methods

toString

Added in API level 1
String toString ()

返回对象的字符串表示形式。 通常, toString方法返回一个“文本表示”该对象的字符串。 结果应该是一个简洁但内容丰富的表述,对于一个人来说很容易阅读。 建议所有子类重写此方法。

ObjecttoString方法返回一个字符串,其中包含对象为实例的类的名称,符号字符“ @ ”以及对象的哈希代码的无符号十六进制表示形式。 换句话说,这个方法返回一个字符串,其值等于:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.

Hooray!