EMMA Coverage Report (generated Mon Oct 17 05:41:20 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 * Licensed to jclouds, Inc. (jclouds) under one or more
3 * contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  jclouds licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  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,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
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