Tabnine Logo
HashSet.containsAll
Code IndexAdd Tabnine to your IDE (free)

How to use
containsAll
method
in
java.util.HashSet

Best Java code snippets using java.util.HashSet.containsAll (Showing top 20 results out of 855)

origin: org.apache.ant/ant

@Override
public synchronized boolean containsAll(Collection<?> c) {
  return set.containsAll(c);
}
origin: org.mockito/mockito-core

public boolean containsAll(Collection<?> mocks) {
  return backingHashSet.containsAll(asWrappedMocks(mocks));
}
origin: google/j2objc

public boolean containsAll(Collection<?> mocks) {
  return backingHashSet.containsAll(asWrappedMocks(mocks));
}
origin: Sable/soot

public boolean addAll(PointsToSet s) {
 boolean result;
 if (subsets == null) {
  subsets = new HashSet<PointsToSet>();
 }
 if (s instanceof MemoryEfficientRasUnion) {
  MemoryEfficientRasUnion meru = (MemoryEfficientRasUnion) s;
  if (meru.subsets == null || subsets.containsAll(meru.subsets)) {
   return false;
  }
  result = subsets.addAll(meru.subsets);
 } else {
  result = subsets.add(s);
 }
 return result;
}
origin: prestodb/presto

    .addAll(right.getOutputSymbols())
    .build();
checkArgument(new HashSet<>(inputSymbols).containsAll(outputSymbols), "Left and right join inputs do not contain all output symbols");
checkArgument(!isCrossJoin() || inputSymbols.size() == outputSymbols.size(), "Cross join does not support output symbols pruning or reordering");
origin: spotbugs/spotbugs

@NoWarning("GC_UNRELATED_TYPES")
static boolean test2(HashSet<Integer> s, LinkedList<Integer> lst) {
  return s.containsAll(lst) && lst.containsAll(s);
}
origin: spotbugs/spotbugs

@ExpectWarning("GC_UNRELATED_TYPES")
static boolean test4(HashSet<Integer> s, LinkedList<String> lst) {
  return s.containsAll(lst) && lst.containsAll(s);
}
origin: apache/hive

 addedNodes.containsAll(childOP.getParentOperators()))) {
toWalk.add(child);
addedNodes.add(child);
origin: apache/drill

 addedNodes.containsAll(childOP.getParentOperators()))) {
toWalk.add(child);
addedNodes.add(child);
origin: spotbugs/spotbugs

@Override
public void visit(Code code) {
  boolean interesting = Const.CONSTRUCTOR_NAME.equals(getMethodName()) || Const.STATIC_INITIALIZER_NAME.equals(getMethodName());
  if (!interesting) {
    return;
  }
  secondaryConstructor = false;
  HashSet<XField> needToInitialize = getMethod().isStatic() ? nonnullStaticFields : nonnullFields;
  if (needToInitialize.isEmpty()) {
    return;
  }
  // initialize any variables we want to initialize for the method
  super.visit(code); // make callbacks to sawOpcode for all opcodes
  if (!secondaryConstructor && !initializedFields.containsAll(needToInitialize)) {
    int priority = Priorities.NORMAL_PRIORITY;
    if (needToInitialize.size() - initializedFields.size() == 1 && needToInitialize.size() > 1) {
      priority = Priorities.HIGH_PRIORITY;
    }
    for (XField f : needToInitialize) {
      if (initializedFields.contains(f)) {
        continue;
      }
      BugInstance b = new BugInstance(this, "NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR", priority)
      .addClassAndMethod(this).addField(f);
      bugReporter.reportBug(b);
    }
  }
  initializedFields.clear();
}
origin: apache/hbase

 containsAll(this.configuredReadTableTimeouts.keySet())) {
LOG.error("-readTableTimeouts can only specify read timeouts for monitor targets " +
  "passed via command line.");
origin: fesh0r/fernflower

if (!addhd) {
 List<Statement> hdsupp = handler.getNeighbours(StatEdge.TYPE_EXCEPTION, Statement.DIRECTION_BACKWARD);
 addhd = (setNodes.containsAll(hdsupp) && (setNodes.size() > hdsupp.size()
                      || setNodes.size() == 1)); // strict subset
origin: requery/requery

@Test
public void testInsertOneToManyInsert() {
  Event event = new Event();
  UUID id = UUID.randomUUID();
  event.setId(id);
  event.setName("test");
  Tag t1 = new Tag();
  t1.setId(UUID.randomUUID());
  Tag t2 = new Tag();
  t2.setId(UUID.randomUUID());
  event.getTags().add(t1);
  event.getTags().add(t2);
  data.insert(event);
  HashSet<Tag> set = new HashSet<>(event.getTags());
  assertEquals(2, set.size());
  assertTrue(set.containsAll(Arrays.asList(t1, t2)));
  assertSame(2, data.select(Tag.class).get().toList().size());
}
origin: wildfly/wildfly

} else if (!info.allMethods.containsAll(WebResourceCollectionMetaData.ALL_HTTP_METHODS)) {
  List<String> methods = new ArrayList<>(WebResourceCollectionMetaData.ALL_HTTP_METHODS);
  methods.removeAll(info.allMethods);
origin: neo4j-contrib/neo4j-apoc-procedures

@UserFunction
@Description("apoc.coll.containsAll(coll, values) optimized contains-all operation (using a HashSet) (returns single row or not)")
public boolean containsAll(@Name("coll") List<Object> coll, @Name("values") List<Object> values) {
  if (coll == null || coll.isEmpty()) return false;
  return new HashSet<>(coll).containsAll(values);
}
origin: apache/accumulo

 continue;
if (!srcFiles.containsAll(cloneFiles)) {
origin: org.elasticsearch/elasticsearch

final List<ShardRouting> mutableShardRoutings = routingNodes.assignedShards(shardId);
assert (shards == null && mutableShardRoutings.size() == 0)
    || (shards != null && shards.size() == mutableShardRoutings.size() && shards.containsAll(mutableShardRoutings));
origin: org.apache.jackrabbit/jackrabbit-core

/**
 * {@inheritDoc}
 */
public boolean containsAll(Collection c) {
  return names.containsAll(c);
}
origin: apache/phoenix

    QueryServicesOptions.DEFAULT_ALLOW_VIEWS_ADD_NEW_CF_BASE_TABLE);
modifyHTable = canViewsAddNewCF && !existingColumnFamiliesForBaseTable(table.getPhysicalName()).containsAll(colFamiliesForPColumnsToBeAdded);
origin: edu.illinois.cs.cogcomp/LBJava

/**
 * Determines whether this conjunction contains all of the terms that the given conjunction
 * contains.
 *
 * @param c The given conjunction.
 * @return <code>true</code> iff this conjunction contains all of the terms that the given
 *         conjunction contains.
 **/
public boolean containsAll(PropositionalConjunction c) {
  return children.containsAll(c.children);
}
java.utilHashSetcontainsAll

Popular methods of HashSet

  • <init>
  • add
    Adds the specified element to this set if it is not already present. More formally, adds the specifi
  • contains
    Returns true if this set contains the specified element. More formally, returns true if and only if
  • size
    Returns the number of elements in this set (its cardinality).
  • addAll
  • remove
    Removes the specified element from this set if it is present. More formally, removes an element e su
  • iterator
    Returns an iterator over the elements in this set. The elements are returned in no particular order.
  • isEmpty
    Returns true if this set contains no elements.
  • clear
    Removes all of the elements from this set. The set will be empty after this call returns.
  • toArray
  • removeAll
  • equals
  • removeAll,
  • equals,
  • clone,
  • retainAll,
  • stream,
  • forEach,
  • hashCode,
  • toString,
  • removeIf

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now