| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | ShuffledDnsServerAddressStream(List<InetSocketAddress>
The addresses are not cloned. It is assumed the caller has cloned this array or otherwise will
not modify the contents. addresses)Create a new instance. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ShuffledDnsServerAddressStream | duplicate()
Implements io. |
| public InetSocketAddress | next()
Implements io. |
| private void | |
| public int | size()
Implements io. next() will return a distinct element before repeating or terminating.
|
| public String |
| addresses | back to summary |
|---|---|
| private final List<InetSocketAddress> addresses | |
| i | back to summary |
|---|---|
| private int i | |
| ShuffledDnsServerAddressStream | back to summary |
|---|---|
| pack-priv ShuffledDnsServerAddressStream(List<InetSocketAddress> addresses) Create a new instance.
| |
| ShuffledDnsServerAddressStream | back to summary |
|---|---|
| private ShuffledDnsServerAddressStream(List<InetSocketAddress> addresses, int startIdx) | |
| duplicate | back to summary |
|---|---|
| public ShuffledDnsServerAddressStream duplicate() Implements io. Doc from io. Duplicate this object. The result of this should be able to be independently iterated over via
Note that
| |
| next | back to summary |
|---|---|
| public InetSocketAddress next() Implements io. Doc from io. Retrieves the next DNS server address from the stream.
| |
| shuffle | back to summary |
|---|---|
| private void shuffle() | |
| size | back to summary |
|---|---|
| public int size() Implements io. Doc from io. Get the number of times | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |