List of usage examples for com.google.common.collect ImmutableSet of
@SuppressWarnings({ "unchecked" }) public static <E> ImmutableSet<E> of()
From source file:guru.qas.martini.jmeter.TagResourceBundle.java
public TagResourceBundle(ResourceBundle delegate, @Nullable Iterable<String> tags) { this.delegate = checkNotNull(delegate, "null ResourceBundle"); this.tags = null == tags ? ImmutableSet.of() : Sets.newLinkedHashSet(tags); }
From source file:io.prestosql.sql.parser.StatementSplitter.java
public static String squeezeStatement(String sql) { TokenSource tokens = getLexer(sql, ImmutableSet.of()); StringBuilder sb = new StringBuilder(); while (true) { Token token = tokens.nextToken(); if (token.getType() == Token.EOF) { break; }/* www . j a v a2 s. co m*/ if (token.getType() == SqlBaseLexer.WS) { sb.append(' '); } else { sb.append(token.getText()); } } return sb.toString().trim(); }
From source file:io.prestosql.plugin.thrift.location.ExtendedSimpleAddressSelector.java
@Override public Optional<SimpleAddress> selectAddress(Optional<String> context) { return selectAddress(context, ImmutableSet.of()); }
From source file:ninja.leaping.permissionsex.backend.sql.Segment.java
static Segment empty(int id) { return new Segment(id, ImmutableSet.of(), ImmutableMap.of(), ImmutableMap.of(), ImmutableList.of(), null, null);//from ww w . ja va 2 s . c om }
From source file:com.linecorp.armeria.server.docs.NamedTypeInfo.java
/** * Returns all enum, struct and exception types referred by this type. */ default Set<TypeSignature> findNamedTypes() { return ImmutableSet.of(); }
From source file:cz.cuni.mff.ms.brodecva.botnicek.ide.check.words.model.checker.PermissiveNamingAuthority.java
@Override public Set<String> getSnapshot() { return ImmutableSet.of(); }
From source file:org.jclouds.cloudtransformer.openstack.Devstack.java
public Iterable<String> functionDependencies(OsFamily family) { return ImmutableSet.of(); }
From source file:com.addthis.ahocorasick.State.java
State(int depth) { this.depth = depth; this.edgeList = null; this.fail = null; this.outputs = ImmutableSet.of(); }
From source file:org.onosproject.cluster.ClusterMetadataDiff.java
public ClusterMetadataDiff(ClusterMetadata oldValue, ClusterMetadata newValue) { this.oldValue = oldValue; this.newValue = newValue; Set<ControllerNode> currentNodeSet = oldValue == null ? ImmutableSet.of() : ImmutableSet.copyOf(oldValue.getNodes()); Set<ControllerNode> newNodeSet = newValue == null ? ImmutableSet.of() : ImmutableSet.copyOf(newValue.getNodes()); nodesAdded = Sets.difference(newNodeSet, currentNodeSet); nodesRemoved = Sets.difference(currentNodeSet, newNodeSet).stream().map(ControllerNode::id) .collect(Collectors.toSet()); }
From source file:com.google.caliper.runner.target.AndroidVm.java
@Override public ImmutableSet<String> trialArgs() { return ImmutableSet.of(); }