EMMA Coverage Report (generated Wed Aug 10 12:30:04 EDT 2011)
[all classes][org.jclouds.savvis.vpdc.domain.vapp]

COVERAGE SUMMARY FOR SOURCE FILE [Network.java]

nameclass, %method, %block, %line, %
Network.java0%   (0/1)0%   (0/6)0%   (0/117)0%   (0/30)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Network0%   (0/1)0%   (0/6)0%   (0/117)0%   (0/30)
Network (String, String): void 0%   (0/1)0%   (0/9)0%   (0/4)
equals (Object): boolean 0%   (0/1)0%   (0/53)0%   (0/18)
getDescription (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
hashCode (): int 0%   (0/1)0%   (0/32)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/17)0%   (0/1)

1/**
2 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
18 */
19package org.jclouds.savvis.vpdc.domain.vapp;
20 
21/**
22 * 
23 * @author Adrian Cole
24 */
25public class Network {
26   private final String name;
27   private final String description;
28 
29   public Network(String name, String description) {
30      this.name = name;
31      this.description = description;
32   }
33 
34   @Override
35   public int hashCode() {
36      final int prime = 31;
37      int result = 1;
38      result = prime * result + ((description == null) ? 0 : description.hashCode());
39      result = prime * result + ((name == null) ? 0 : name.hashCode());
40      return result;
41   }
42 
43   @Override
44   public boolean equals(Object obj) {
45      if (this == obj)
46         return true;
47      if (obj == null)
48         return false;
49      if (getClass() != obj.getClass())
50         return false;
51      Network other = (Network) obj;
52      if (description == null) {
53         if (other.description != null)
54            return false;
55      } else if (!description.equals(other.description))
56         return false;
57      if (name == null) {
58         if (other.name != null)
59            return false;
60      } else if (!name.equals(other.name))
61         return false;
62      return true;
63   }
64 
65   @Override
66   public String toString() {
67      return "Network [name=" + name + ", description=" + description + "]";
68   }
69 
70   public String getName() {
71      return name;
72   }
73 
74   public String getDescription() {
75      return description;
76   }
77}

[all classes][org.jclouds.savvis.vpdc.domain.vapp]
EMMA 2.0.5312 (C) Vladimir Roubtsov