mirror of https://github.com/apache/jclouds.git
changed builders to accept iterable as it is easier in guava than sets
This commit is contained in:
parent
7f1a543fb6
commit
b4e3bec644
|
@ -48,7 +48,7 @@ public class ComputeMetadataBuilder extends ResourceMetadataBuilder<ComputeType>
|
|||
return this;
|
||||
}
|
||||
|
||||
public ComputeMetadataBuilder tags(Set<String> tags) {
|
||||
public ComputeMetadataBuilder tags(Iterable<String> tags) {
|
||||
this.tags = ImmutableSet.<String> copyOf(checkNotNull(tags, "tags"));
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ import static org.jclouds.compute.predicates.ImagePredicates.any;
|
|||
import java.net.URI;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.jclouds.compute.domain.internal.HardwareImpl;
|
||||
import org.jclouds.compute.predicates.ImagePredicates;
|
||||
|
@ -90,7 +89,7 @@ public class HardwareBuilder extends ComputeMetadataBuilder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public HardwareBuilder tags(Set<String> tags) {
|
||||
public HardwareBuilder tags(Iterable<String> tags) {
|
||||
return HardwareBuilder.class.cast(super.tags(tags));
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||
|
||||
import java.net.URI;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
@ -75,7 +74,7 @@ public class ImageBuilder extends ComputeMetadataBuilder {
|
|||
return ImageBuilder.class.cast(super.id(id));
|
||||
}
|
||||
|
||||
public ImageBuilder tags(Set<String> tags) {
|
||||
public ImageBuilder tags(Iterable<String> tags) {
|
||||
return ImageBuilder.class.cast(super.tags(tags));
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ public class NodeMetadataBuilder extends ComputeMetadataBuilder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public NodeMetadataBuilder tags(Set<String> tags) {
|
||||
public NodeMetadataBuilder tags(Iterable<String> tags) {
|
||||
return NodeMetadataBuilder.class.cast(super.tags(tags));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue