Package com.yahoo.config.provision
Class NetworkPorts
- java.lang.Object
-
- com.yahoo.config.provision.NetworkPorts
-
public class NetworkPorts extends java.lang.Object
Models an immutable list of network port allocations- Author:
- arnej
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkPorts.Allocation
-
Constructor Summary
Constructors Constructor Description NetworkPorts(java.util.Collection<NetworkPorts.Allocation> allocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<NetworkPorts.Allocation>
allocations()
Returns a read only collection of the port allocations of thisboolean
equals(java.lang.Object other)
int
hashCode()
int
size()
-
-
-
Constructor Detail
-
NetworkPorts
public NetworkPorts(java.util.Collection<NetworkPorts.Allocation> allocations)
-
-
Method Detail
-
allocations
public java.util.Collection<NetworkPorts.Allocation> allocations()
Returns a read only collection of the port allocations of this
-
size
public int size()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-