List of usage examples for com.google.common.collect ImmutableList of
@SuppressWarnings("unchecked") public static <E> ImmutableList<E> of()
From source file:com.google.javascript.jscomp.deps.SimpleDependencyInfo.java
public static Builder builder(String srcPathRelativeToClosure, String pathOfDefiningFile) { return new AutoValue_SimpleDependencyInfo.Builder().setName(pathOfDefiningFile) .setPathRelativeToClosureBase(srcPathRelativeToClosure).setProvides(ImmutableList.of()) .setRequires(ImmutableList.of()).setTypeRequires(ImmutableList.of()) .setLoadFlags(ImmutableMap.of()); }
From source file:com.mysema.query.types.template.BooleanTemplate.java
public static BooleanExpression create(String template) { return new BooleanTemplate(TemplateFactory.DEFAULT.create(template), ImmutableList.of()); }
From source file:com.querydsl.core.types.template.StringTemplate.java
public static StringExpression create(String template) { return new StringTemplate(TemplateFactory.DEFAULT.create(template), ImmutableList.of()); }
From source file:org.glowroot.agent.weaving.ClassNames.java
static ImmutableList<String> fromInternalNames(List<String> internalNames) { if (internalNames.isEmpty()) { // optimization for a common case return ImmutableList.of(); }/*from www.j a v a 2 s .c o m*/ List<String> classNames = Lists.newArrayList(); for (String internalName : internalNames) { classNames.add(internalName.replace('/', '.')); } return ImmutableList.copyOf(classNames); }
From source file:io.prestosql.sql.planner.optimizations.LocalProperties.java
public static <T> List<LocalProperty<T>> none() { return ImmutableList.of(); }
From source file:com.spotify.heroic.suggest.WriteSuggest.java
public static WriteSuggest of() { return new WriteSuggest(ImmutableList.of(), ImmutableList.of(), ImmutableList.of()); }
From source file:com.isotrol.impe3.api.component.sitemap.Sitemap.java
private static <T> ImmutableList<T> create(Iterable<T> entries) { if (entries == null) { return ImmutableList.of(); } else {/*from w ww.j av a 2 s . c o m*/ return ImmutableList.copyOf(Iterables.filter(entries, Predicates.notNull())); } }
From source file:com.querydsl.core.types.template.DslTemplate.java
public static <T> DslExpression<T> create(Class<? extends T> type, String template) { return new DslTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.of()); }
From source file:com.mysema.query.types.template.SimpleTemplate.java
public static <T> SimpleExpression<T> create(Class<? extends T> type, String template) { return new SimpleTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.of()); }
From source file:org.jclouds.etcd.domain.members.CreateMember.java
@SerializedNames({ "name", "peerURLs", "clientURLs" }) public static CreateMember create(String name, List<String> peerURLs, List<String> clientURLs) { if (clientURLs == null) clientURLs = ImmutableList.of(); return new AutoValue_CreateMember(name, ImmutableList.copyOf(peerURLs), ImmutableList.copyOf(clientURLs)); }