public interface DnsServerAddressStream
Modifier and Type | Method and Description |
---|---|
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 Object.clone()
isn't used because it may make sense for some implementations to have the
following relationship x.duplicate() == x
.