List of usage examples for com.google.common.collect ImmutableSet of
public static <E> ImmutableSet<E> of(E element)
From source file:org.graylog.collector.file.naming.NumberSuffixStrategy.java
public NumberSuffixStrategy(Path basePath) { this(ImmutableSet.of(basePath)); }
From source file:org.onosproject.cluster.ClusterServiceAdapter.java
@Override public Set<ControllerNode> getNodes() { return ImmutableSet.of(local); }
From source file:com.facebook.buck.graph.AbstractBreadthFirstTraversal.java
public AbstractBreadthFirstTraversal(Node initialNode) { this(ImmutableSet.of(initialNode)); }
From source file:com.github.richardballard.arbeeutils.id.ByIdSpecifiers.java
/** * @return an instance that excludes only the specified id *///from w w w . j a va 2 s . com public static @NotNull <T> ByIdSpecifier<T> excludeOnly(final @NotNull T exclusion) { return new AllBasedByIdSpecifier<>(ImmutableSet.of(exclusion)); }
From source file:com.android.tools.idea.npw.JavaWizardPathProvider.java
@Override public Collection<NewModuleDynamicPath> createWizardPaths(@Nullable Project project, @NotNull Disposable disposable) { return ImmutableSet.of(new JavaModuleDynamicPath(disposable)); }
From source file:org.apache.hadoop.hive.ql.io.SequenceFileStorageFormatDescriptor.java
@Override public Set<String> getNames() { return ImmutableSet.of(IOConstants.SEQUENCEFILE); }
From source file:org.codice.ddf.catalog.ui.security.ShareableMetacardSharingPolicyPlugin.java
private static Map<String, Set<String>> getOwnerPermission(String owner) { return ImmutableMap.of(Core.METACARD_OWNER, ImmutableSet.of(owner)); }
From source file:io.mindmaps.graql.internal.query.predicate.RegexPredicate.java
/** * @param pattern the regex pattern that this predicate is testing against */ RegexPredicate(String pattern) { super(ImmutableSet.of(pattern)); this.pattern = pattern; }
From source file:shaded.org.openqa.selenium.remote.server.handler.GetAvailableLogTypesHandler.java
@Override public Set<String> call() throws Exception { return Sets.union(getDriver().manage().logs().getAvailableLogTypes(), ImmutableSet.of(LogType.SERVER)); }
From source file:org.apache.hadoop.hive.ql.io.JsonFileStorageFormatDescriptor.java
@Override public Set<String> getNames() { return ImmutableSet.of(IOConstants.JSONFILE); }