List of usage examples for com.google.common.collect ImmutableList copyOf
public static <E> ImmutableList<E> copyOf(E[] elements)
From source file:org.onosproject.store.service.BatchReadResult.java
public BatchReadResult(List<ReadResult> readResults) { this.readResults = ImmutableList.copyOf(readResults); }
From source file:com.wrmsr.wava.core.unit.Table.java
public Table(List<Name> names) { this.names = ImmutableList.copyOf(names); }
From source file:com.proofpoint.configuration.ValidationErrorModule.java
public ValidationErrorModule(List<Message> messages) { this.messages = ImmutableList.copyOf(messages); }
From source file:uk.co.blackpepper.support.retrofit.CompositeRequestInterceptor.java
public CompositeRequestInterceptor(RequestInterceptor... interceptors) { this.interceptors = ImmutableList.copyOf(interceptors); }
From source file:com.enonic.cms.core.plugin.manager.ExtensionHolder.java
public List<Extension> getAll() { return ImmutableList.copyOf(this.map.values()); }
From source file:org.eclipse.buildship.ui.view.task.TaskViewContent.java
public TaskViewContent(List<OmniEclipseProject> projects, List<IProject> faultyProjects) { this.projects = ImmutableList.copyOf(projects); this.faultyProjects = faultyProjects; }
From source file:com.github.aliakhtar.annoTest.util.SourceFile.java
public SourceFile(String fileName, String... content) { this.fileName = fileName; this.content = ImmutableList.copyOf(content); }
From source file:com.metamx.druid.merger.common.TaskStatus.java
public static TaskStatus success(String taskId, List<DataSegment> segments) { return new TaskStatus(taskId, Status.SUCCESS, ImmutableList.copyOf(segments), Collections.<Task>emptyList(), -1);/* ww w. j a v a 2 s . co m*/ }
From source file:org.mule.api.registry.SPIServiceRegistry.java
/** * {@inheritDoc}/*from w w w . j a va 2 s . co m*/ */ @Override public <T> Collection<T> lookupProviders(Class<T> providerClass) { return ImmutableList.copyOf(ServiceLoader.load(providerClass).iterator()); }
From source file:org.graylog2.plugin.MessageCollection.java
public MessageCollection(Iterable<Message> other) { messages = ImmutableList.copyOf(other); }