public interface DnsServerAddressStream
限定符和类型 | 方法和说明 |
---|---|
DnsServerAddressStream |
duplicate()
Duplicate this object.
|
java.net.InetSocketAddress |
next()
Retrieves the next DNS server address from the stream.
|
int |
size()
Get the number of times
next() will return a distinct element before repeating or terminating. |
java.net.InetSocketAddress next()
int size()
next()
will return a distinct element before repeating or terminating.next()
will return a distinct element before repeating or terminating.DnsServerAddressStream duplicate()
next()
.
Note that #clone()
isn't used because it may make sense for some implementations to have the following
relationship x.duplicate() == x
.