List of usage examples for com.google.common.collect ImmutableSet of
@SuppressWarnings({ "unchecked" }) public static <E> ImmutableSet<E> of()
From source file:com.palantir.ptoss.cinch.core.SimpleBinding.java
/** * Default constructor that will fire on any model update. *//*from ww w . j a v a 2 s.c o m*/ public <T extends Enum<?> & ModelUpdate> SimpleBinding() { this.on = ImmutableSet.of(); }
From source file:com.google.caliper.functional.DefaultCaliperOptions.java
@Override public ImmutableSet<String> vmNames() { return ImmutableSet.of(); }
From source file:com.palantir.atlasdb.cli.services.ServicesConfig.java
@Value.Default public Set<Schema> schemas() { return ImmutableSet.of(); }
From source file:com.facebook.buck.android.IdentityResourcesProvider.java
@Override public ImmutableSet<Path> getNonEnglishStringFiles() { return ImmutableSet.of(); }
From source file:org.uberfire.backend.server.util.Guava14Workaround.java
@Produces
Set<Service> dummyServices() {
return ImmutableSet.of();
}
From source file:de.metas.ui.web.window.datatypes.MediaType.java
public static final Set<MediaType> fromNullableCommaSeparatedString(final String str) { if (str == null || str.isEmpty()) { return ImmutableSet.of(); }//from www . j av a2 s.co m final List<String> parts = Splitter.on(",").trimResults().omitEmptyStrings().splitToList(str); return parts.stream().map(MediaType::fromJson).collect(ImmutableSet.toImmutableSet()); }
From source file:de.metas.ui.web.window.descriptor.DetailId.java
public static final Set<String> toJson(final Collection<DetailId> detailIds) { if (detailIds == null || detailIds.isEmpty()) { return ImmutableSet.of(); }/*w w w. j av a 2 s . c o m*/ return detailIds.stream().map(detailId -> detailId.toJson()).collect(GuavaCollectors.toImmutableSet()); }
From source file:org.sonar.javascript.cfg.EndBlock.java
@Override public Set<MutableBlock> successors() { return ImmutableSet.of(); }
From source file:tile80.tile80.Tile80.java
public static Tile80 newEmpty(String id) { Set lst = ImmutableSet.of(); Map map = ImmutableMap.of();/*from w w w.j av a2s.co m*/ return new Tile80Eager(new Pair(0, 0), id, lst, lst, map); }
From source file:com.linecorp.armeria.server.CatchAllPathMapping.java
@Override public Set<String> paramNames() { return ImmutableSet.of(); }