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

COVERAGE SUMMARY FOR SOURCE FILE [MutableStorageMetadataImpl.java]

nameclass, %method, %block, %line, %
MutableStorageMetadataImpl.java100% (1/1)83%  (5/6)59%  (17/29)67%  (8/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MutableStorageMetadataImpl100% (1/1)83%  (5/6)59%  (17/29)67%  (8/12)
MutableStorageMetadataImpl (StorageMetadata): void 0%   (0/1)0%   (0/12)0%   (0/4)
MutableStorageMetadataImpl (): void 100% (1/1)100% (3/3)100% (2/2)
getETag (): String 100% (1/1)100% (3/3)100% (1/1)
getLastModified (): Date 100% (1/1)100% (3/3)100% (1/1)
setETag (String): void 100% (1/1)100% (4/4)100% (2/2)
setLastModified (Date): void 100% (1/1)100% (4/4)100% (2/2)

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.blobstore.domain.internal;
20 
21import java.io.Serializable;
22import java.util.Date;
23 
24import org.jclouds.blobstore.domain.MutableStorageMetadata;
25import org.jclouds.blobstore.domain.StorageMetadata;
26import org.jclouds.blobstore.domain.StorageType;
27import org.jclouds.domain.internal.MutableResourceMetadataImpl;
28 
29/**
30 * Used to construct new resources or modify existing ones.
31 * 
32 * @author Adrian Cole
33 */
34public class MutableStorageMetadataImpl extends MutableResourceMetadataImpl<StorageType> implements
35         MutableStorageMetadata, Serializable {
36 
37   /** The serialVersionUID */
38   private static final long serialVersionUID = -280558162576368264L;
39 
40   private String eTag;
41   private Date lastModified;
42 
43   public MutableStorageMetadataImpl() {
44      super();
45   }
46 
47   public MutableStorageMetadataImpl(StorageMetadata from) {
48      super(from);
49      this.eTag = from.getETag();
50      this.lastModified = from.getLastModified();
51   }
52 
53   /**
54    * {@inheritDoc}
55    */
56   @Override
57   public String getETag() {
58      return eTag;
59   }
60 
61   /**
62    * {@inheritDoc}
63    */
64   @Override
65   public Date getLastModified() {
66      return lastModified;
67   }
68 
69   /**
70    * {@inheritDoc}
71    */
72   @Override
73   public void setLastModified(Date lastModified) {
74      this.lastModified = lastModified;
75   }
76 
77   /**
78    * {@inheritDoc}
79    */
80   @Override
81   public void setETag(String eTag) {
82      this.eTag = eTag;
83   }
84 
85}

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