jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-aws] JCLOUDS-457: Add list operation (#46)
Date Sat, 02 Aug 2014 00:45:32 GMT
> + */
> +package org.jclouds.glacier.blobstore.functions;
> +
> +import org.jclouds.blobstore.domain.PageSet;
> +import org.jclouds.blobstore.domain.StorageMetadata;
> +import org.jclouds.blobstore.domain.internal.PageSetImpl;
> +import org.jclouds.glacier.domain.ArchiveMetadataCollection;
> +
> +import com.google.common.base.Function;
> +import com.google.common.collect.Iterables;
> +
> +public class ArchiveMetadataCollectionToStorageMetadata implements Function<ArchiveMetadataCollection,
> +      PageSet<? extends StorageMetadata>>  {
> +   @Override
> +   public PageSet<? extends StorageMetadata> apply(ArchiveMetadataCollection archives)
{
> +      return new PageSetImpl<StorageMetadata>(Iterables.transform(archives, new
ArchiveMetadataToBlobMetadata()), null);

Is `ArchiveMetadataToBlobMetadata` used anywhere other than here? If not, include it as an
inner class, or simply inline it?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/46/files#r15725596
Mime
View raw message