EMMA Coverage Report (generated Mon Oct 17 05:41:20 EDT 2011)
[all classes][org.jclouds.deltacloud.domain]

COVERAGE SUMMARY FOR SOURCE FILE [Feature.java]

nameclass, %method, %block, %line, %
Feature.java100% (1/1)60%  (3/5)65%  (52/80)68%  (14.9/22)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Feature100% (1/1)60%  (3/5)65%  (52/80)68%  (14.9/22)
getName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
toString (): String 0%   (0/1)0%   (0/12)0%   (0/1)
equals (Object): boolean 100% (1/1)70%  (26/37)62%  (8/13)
hashCode (): int 100% (1/1)89%  (17/19)97%  (3.9/4)
Feature (String): void 100% (1/1)100% (9/9)100% (3/3)

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.deltacloud.domain;
20 
21import static com.google.common.base.Preconditions.checkNotNull;
22 
23/**
24 * 
25 * @author Adrian Cole
26 */
27public class Feature {
28   private final String name;
29 
30   public Feature(String name) {
31      this.name = checkNotNull(name, "name");
32   }
33 
34   public String getName() {
35      return name;
36   }
37 
38   @Override
39   public String toString() {
40      return "[name=" + name + "]";
41   }
42 
43   @Override
44   public int hashCode() {
45      final int prime = 31;
46      int result = 1;
47      result = prime * result + ((name == null) ? 0 : name.hashCode());
48      return result;
49   }
50 
51   @Override
52   public boolean equals(Object obj) {
53      if (this == obj)
54         return true;
55      if (obj == null)
56         return false;
57      if (getClass() != obj.getClass())
58         return false;
59      Feature other = (Feature) obj;
60      if (name == null) {
61         if (other.name != null)
62            return false;
63      } else if (!name.equals(other.name))
64         return false;
65      return true;
66   }
67}

[all classes][org.jclouds.deltacloud.domain]
EMMA 2.0.5312 (C) Vladimir Roubtsov