Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for containsAll (0.17 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            "containsAll(sameElements) should return true",
            collection.containsAll(MinimalCollection.of(createSamplesArray())));
      }
    
      @SuppressWarnings("ModifyingCollectionWithItself")
      public void testContainsAll_self() {
        assertTrue("containsAll(this) should return true", collection.containsAll(collection));
      }
    
      public void testContainsAll_partialOverlap() {
        assertFalse(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

            "containsAll(sameElements) should return true",
            collection.containsAll(MinimalCollection.of(createSamplesArray())));
      }
    
      @SuppressWarnings("ModifyingCollectionWithItself")
      public void testContainsAll_self() {
        assertTrue("containsAll(this) should return true", collection.containsAll(collection));
      }
    
      public void testContainsAll_partialOverlap() {
        assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        SortedSet<String> set = of("a", "b", "f");
        assertTrue(set.containsAll(Collections.emptyList()));
        assertTrue(set.containsAll(asList("b")));
        assertTrue(set.containsAll(asList("b", "b")));
        assertTrue(set.containsAll(asList("b", "f")));
        assertTrue(set.containsAll(asList("b", "f", "a")));
        assertFalse(set.containsAll(asList("d")));
        assertFalse(set.containsAll(asList("z")));
        assertFalse(set.containsAll(asList("b", "d")));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        public boolean add(E element) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.add(element);
        }
    
        @Override
        public boolean containsAll(Collection<?> collection) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.containsAll(collection);
        }
    
        @Override
        public boolean addAll(Collection<? extends E> collection) {
          assertTrue(Thread.holdsLock(mutex));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        SortedSet<String> set = of("a", "b", "f");
        assertTrue(set.containsAll(Collections.emptyList()));
        assertTrue(set.containsAll(asList("b")));
        assertTrue(set.containsAll(asList("b", "b")));
        assertTrue(set.containsAll(asList("b", "f")));
        assertTrue(set.containsAll(asList("b", "f", "a")));
        assertFalse(set.containsAll(asList("d")));
        assertFalse(set.containsAll(asList("z")));
        assertFalse(set.containsAll(asList("b", "d")));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        return object != null && delegateList().contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> targets) {
        return delegateList().containsAll(targets);
      }
    
      public int size() {
        return delegateList().size();
      }
    
      @Override
      public boolean isEmpty() {
        return delegateList().isEmpty();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        public boolean add(E element) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.add(element);
        }
    
        @Override
        public boolean containsAll(Collection<?> collection) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.containsAll(collection);
        }
    
        @Override
        public boolean addAll(Collection<? extends E> collection) {
          assertTrue(Thread.holdsLock(mutex));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/RangeTest.java

        Range<Integer> range = Range.closed(3, 5);
        assertTrue(range.containsAll(asList(3, 3, 4, 5)));
        assertFalse(range.containsAll(asList(3, 3, 4, 5, 6)));
    
        // We happen to know that natural-order sorted sets use a different code
        // path, so we test that separately
        assertTrue(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5)));
        assertTrue(range.containsAll(ImmutableSortedSet.of(3)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        if (!allowNulls) {
          for (Object object : collection) {
            // behave badly
            if (object == null) {
              throw new NullPointerException();
            }
          }
        }
        return super.containsAll(collection);
      }
    
      @Override
      public Iterator<E> iterator() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        public boolean add(E element) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.add(element);
        }
    
        @Override
        public boolean containsAll(Collection<?> collection) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.containsAll(collection);
        }
    
        @Override
        public boolean addAll(Collection<? extends E> collection) {
          assertTrue(Thread.holdsLock(mutex));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.7K bytes
    - Viewed (0)
Back to top