Package com.yahoo.config.provision
Class AllocatedHosts
- java.lang.Object
-
- com.yahoo.config.provision.AllocatedHosts
-
public class AllocatedHosts extends java.lang.Object
The hosts allocated to an application. This can be serialized to/from JSON. This is immutable.- Author:
- Ulf Lilleengen, bratseth
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.util.Set<HostSpec>
getHosts()
Returns the hosts of this allocationint
hashCode()
java.lang.String
toString()
static AllocatedHosts
withHosts(java.util.Set<HostSpec> hosts)
-
-
-
Method Detail
-
withHosts
public static AllocatedHosts withHosts(java.util.Set<HostSpec> hosts)
-
getHosts
public java.util.Set<HostSpec> getHosts()
Returns the hosts of this allocation
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-