diff options
author | 2018-07-25 19:09:19 +0800 | |
---|---|---|
committer | 2018-07-25 19:09:19 +0800 | |
commit | 92253f30556016a54e03c0476e94f234b362c6b2 (patch) | |
tree | 8cf4a1d88a052afa3bd6b827aaacb1a0683ab189 /nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java | |
parent | 22fbe41ad4e5360248af984496c3b1dd4b945f56 (diff) |
Nova model code basic issue fix
Issue-ID: SO-729
Change-Id: I35d181b0dd32995f5ce286d38b5b17fcbcd24e9e
Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java')
-rw-r--r-- | nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java b/nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java index e119eae..b97a7ae 100644 --- a/nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java +++ b/nova-model/src/main/java/com/woorea/openstack/nova/model/Hosts.java @@ -23,71 +23,71 @@ import java.util.List; import org.codehaus.jackson.annotate.JsonProperty; public class Hosts implements Iterable<Hosts.Host>, Serializable { - - public static final class Host { - - private String zone; - - @JsonProperty("host_name") - private String hostName; - - private String service; + + public static final class Host { + + private String zone; + + @JsonProperty("host_name") + private String hostName; + + private String service; - /** - * @return the hostName - */ - public String getHostName() { - return hostName; - } + /** + * @return the hostName + */ + public String getHostName() { + return hostName; + } - /** - * @return the service - */ - public String getService() { - return service; - } - - public String getZone() { - return zone; - } + /** + * @return the service + */ + public String getService() { + return service; + } + + public String getZone() { + return zone; + } - public void setZone(String zone) { - this.zone = zone; - } + public void setZone(String zone) { + this.zone = zone; + } - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Host [hostName=" + hostName + ", service=" + service + "]"; - } - - } + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "Host [hostName=" + hostName + ", service=" + service + "]"; + } + + } - @JsonProperty("hosts") - private List<Host> list; + @JsonProperty("hosts") + private List<Host> list; - /** - * @return the list - */ - public List<Host> getList() { - return list; - } - - @Override - public Iterator<Hosts.Host> iterator() { - return list.iterator(); - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "Hosts [list=" + list + "]"; - } + /** + * @return the list + */ + public List<Host> getList() { + return list; + } + + @Override + public Iterator<Hosts.Host> iterator() { + return list.iterator(); + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "Hosts [list=" + list + "]"; + } - - + + } |