public class HostPortList
extends Object
HostPortList: data object that contains a collection of HostPort objects.
| Constructor | Description |
|---|---|
HostPortList() |
Create empty HostPortList
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(HostPort hostPort) |
Add HostPort object
|
HostPort |
get(int index) |
Get HostPort object at index, null if out of bounds
|
int |
size() |
Get number of HostPort objects
|
public void add(HostPort hostPort)
hostPort - public HostPort get(int index)
index - indexpublic int size()