EMMA Coverage Report (generated Wed Aug 10 12:30:04 EDT 2011)
[all classes][org.jclouds.azure.storage.domain.internal]

COVERAGE SUMMARY FOR SOURCE FILE [BoundedHashSet.java]

nameclass, %method, %block, %line, %
BoundedHashSet.java0%   (0/1)0%   (0/6)0%   (0/38)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BoundedHashSet0%   (0/1)0%   (0/6)0%   (0/38)0%   (0/13)
BoundedHashSet (Iterable, URI, String, String, Integer, String): void 0%   (0/1)0%   (0/22)0%   (0/8)
getMarker (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getMaxResults (): int 0%   (0/1)0%   (0/4)0%   (0/1)
getNextMarker (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getPrefix (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getUrl (): URI 0%   (0/1)0%   (0/3)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.azure.storage.domain.internal;
20 
21import java.net.URI;
22import java.util.HashSet;
23 
24import org.jclouds.azure.storage.domain.BoundedSet;
25 
26import com.google.common.collect.Iterables;
27 
28/**
29 * 
30 * @author Adrian Cole
31 * 
32 */
33public class BoundedHashSet<T> extends HashSet<T> implements BoundedSet<T> {
34 
35   /** The serialVersionUID */
36   private static final long serialVersionUID = -7133632087734650835L;
37   protected final URI url;
38   protected final String prefix;
39   protected final String marker;
40   protected final Integer maxResults;
41   protected final String nextMarker;
42 
43   public BoundedHashSet(Iterable<T> contents, URI url, String prefix, String marker,
44            Integer maxResults, String nextMarker) {
45      Iterables.addAll(this, contents);
46      this.url = url;
47      this.prefix = prefix;
48      this.nextMarker = nextMarker;
49      this.maxResults = maxResults;
50      this.marker = marker;
51   }
52 
53   public String getPrefix() {
54      return prefix;
55   }
56 
57   public String getMarker() {
58      return marker;
59   }
60 
61   public int getMaxResults() {
62      return maxResults;
63   }
64 
65   public String getNextMarker() {
66      return nextMarker;
67   }
68 
69   public URI getUrl() {
70      return url;
71   }
72 
73}

[all classes][org.jclouds.azure.storage.domain.internal]
EMMA 2.0.5312 (C) Vladimir Roubtsov