EMMA Coverage Report (generated Mon Oct 17 05:41:20 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 * 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.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