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

COVERAGE SUMMARY FOR SOURCE FILE [Limits.java]

nameclass, %method, %block, %line, %
Limits.java0%   (0/1)0%   (0/6)0%   (0/117)0%   (0/29)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Limits0%   (0/1)0%   (0/6)0%   (0/117)0%   (0/29)
Limits (): void 0%   (0/1)0%   (0/9)0%   (0/3)
equals (Object): boolean 0%   (0/1)0%   (0/53)0%   (0/18)
getAbsolute (): Map 0%   (0/1)0%   (0/3)0%   (0/1)
getRate (): Set 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.cloudservers.domain;
20 
21import java.util.Map;
22import java.util.Set;
23 
24import com.google.common.collect.Maps;
25import com.google.common.collect.Sets;
26 
27public class Limits {
28 
29   private Set<RateLimit> rate = Sets.newLinkedHashSet();
30   private Map<String, Integer> absolute = Maps.newLinkedHashMap();
31 
32   public Set<RateLimit> getRate() {
33      return rate;
34   }
35 
36   @Override
37   public String toString() {
38      return "Limits [rate=" + rate + ", absolute=" + absolute + "]";
39   }
40 
41   @Override
42   public int hashCode() {
43      final int prime = 31;
44      int result = 1;
45      result = prime * result + ((absolute == null) ? 0 : absolute.hashCode());
46      result = prime * result + ((rate == null) ? 0 : rate.hashCode());
47      return result;
48   }
49 
50   @Override
51   public boolean equals(Object obj) {
52      if (this == obj)
53         return true;
54      if (obj == null)
55         return false;
56      if (getClass() != obj.getClass())
57         return false;
58      Limits other = (Limits) obj;
59      if (absolute == null) {
60         if (other.absolute != null)
61            return false;
62      } else if (!absolute.equals(other.absolute))
63         return false;
64      if (rate == null) {
65         if (other.rate != null)
66            return false;
67      } else if (!rate.equals(other.rate))
68         return false;
69      return true;
70   }
71 
72   public Map<String, Integer> getAbsolute() {
73      return absolute;
74   }
75 
76}

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