public class Hosts extends Object implements Iterable<Hosts.HostAndPort>
| Modifier and Type | Class and Description |
|---|---|
static class |
Hosts.HostAndPort |
| Constructor and Description |
|---|
Hosts(List<String> hosts,
List<Integer> ports) |
| Modifier and Type | Method and Description |
|---|---|
Hosts.HostAndPort |
getFirst() |
boolean |
hasHost() |
boolean |
isSingleHost() |
Iterator<Hosts.HostAndPort> |
iterator() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final Hosts NO_HOST
public boolean hasHost()
public boolean isSingleHost()
public int size()
public Hosts.HostAndPort getFirst()
public Iterator<Hosts.HostAndPort> iterator()
iterator in interface Iterable<Hosts.HostAndPort>Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.