List of usage examples for com.google.common.collect ImmutableMap copyOf
public static <K, V> ImmutableMap<K, V> copyOf(Iterable<? extends Entry<? extends K, ? extends V>> entries)
From source file:org.jclouds.openstack.heat.v1.domain.Template.java
@SerializedNames({ "description", "parameters", "resources" }) private static Template create(String description, Map<String, Object> parameters, Map<String, Object> resources) { return new AutoValue_Template(description, parameters != null ? ImmutableMap.copyOf(parameters) : ImmutableMap.<String, Object>of(), resources != null ? ImmutableMap.copyOf(resources) : ImmutableMap.<String, Object>of()); }
From source file:org.jclouds.b2.domain.UploadFileResponse.java
@SerializedNames({ "fileId", "fileName", "accountId", "bucketId", "contentLength", "contentSha1", "contentType", "fileInfo" }) public static UploadFileResponse create(String fileId, String fileName, String accountId, String bucketId, long contentLength, String contentSha1, String contentType, Map<String, String> fileInfo) { return new AutoValue_UploadFileResponse(fileId, fileName, accountId, bucketId, contentLength, contentSha1, contentType, ImmutableMap.copyOf(fileInfo)); }
From source file:org.immutables.fixture.encoding.defs.OptionalMap.java
@Encoding.Of static @Nullable <K, V> ImmutableMap<K, V> init(Optional<? extends Map<K, V>> map) { return map.isPresent() ? ImmutableMap.copyOf(map.get()) : null; }
From source file:com.enonic.cms.core.plugin.host.HostServicesImpl.java
public Map<String, Object> getServiceMap() { return ImmutableMap.copyOf(this.serviceMap); }
From source file:azkaban.flowtrigger.DependencyPluginConfigImpl.java
public DependencyPluginConfigImpl(final Map<String, String> props) { this.props = ImmutableMap.copyOf(props); }
From source file:com.google.gerrit.server.notedb.RevisionNoteMap.java
static RevisionNoteMap<ChangeRevisionNote> parse(ChangeNoteUtil noteUtil, Change.Id changeId, ObjectReader reader, NoteMap noteMap, PatchLineComment.Status status) throws ConfigInvalidException, IOException { Map<RevId, ChangeRevisionNote> result = new HashMap<>(); for (Note note : noteMap) { ChangeRevisionNote rn = new ChangeRevisionNote(noteUtil, changeId, reader, note.getData(), status); rn.parse();//from www . j a va 2 s . com result.put(new RevId(note.name()), rn); } return new RevisionNoteMap<>(noteMap, ImmutableMap.copyOf(result)); }
From source file:azkaban.flowtrigger.DependencyInstanceConfigImpl.java
public DependencyInstanceConfigImpl(final Map<String, String> props) { this.props = ImmutableMap.copyOf(props); }
From source file:local.laer.app.knapsack.support.KnapsackSolution.java
public KnapsackSolution(Region region, Map<Cell<String>, Item> map) { this.area = region.shape(); this.items = ImmutableMap.copyOf(map); }
From source file:co.cask.cdap.etl.api.LookupConfig.java
public LookupConfig(Map<String, LookupTableConfig> tables) { this.tables = ImmutableMap.copyOf(tables); }
From source file:azkaban.flowtrigger.DependencyInstanceRuntimePropsImpl.java
public DependencyInstanceRuntimePropsImpl(final Map<String, String> props) { this.props = ImmutableMap.copyOf(props); }