Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertTrue(set.containsAll(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")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. android/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)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        assertEquals(oldValues, new ArrayList<V>(multimap().replaceValues(k0(), values)));
        assertEquals(size - oldValues.size() + multimap().get(k0()).size(), multimap().size());
        assertTrue(multimap().get(k0()).containsAll(values));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testReplaceNonEmptyValues() {
        List<K> keys = copyToList(multimap().keySet());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
        assertEquals(expectedValues.size(), mapValues.size());
        assertTrue(expectedValues.containsAll(mapValues));
        assertTrue(mapValues.containsAll(expectedValues));
      }
    
      public void testTransformEmptyMapEquality() {
        Map<String, String> map =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertTrue(entrySet.containsAll(new HashSet<Entry<K, V>>(entrySet)));
          assertTrue(entrySet.equals(new HashSet<Entry<K, V>>(entrySet)));
        }
    
        Object[] entrySetToArray1 = entrySet.toArray();
        assertEquals(map.size(), entrySetToArray1.length);
        assertTrue(asList(entrySetToArray1).containsAll(entrySet));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          }
        }.test();
      }
    
      public void testContainsAll_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertFalse(c.containsAll(of("a", "b", "c", "d")));
        assertFalse(c.containsAll(of("a", "d")));
        assertTrue(c.containsAll(of("a", "c")));
        assertTrue(c.containsAll(of("a", "b", "c")));
      }
    
      public void testEquals_sameType() {
        Collection<String> c = of("a", "b", "c");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Collection<?> expectedValues = expected.values();
        Collection<?> mapValues = map.values();
        assertEquals(expectedValues.size(), mapValues.size());
        assertTrue(expectedValues.containsAll(mapValues));
        assertTrue(mapValues.containsAll(expectedValues));
      }
    
      public void testTransformEmptyMapEquality() {
        Map<String, String> map =
            transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          assertTrue(entrySet.containsAll(new HashSet<Entry<K, V>>(entrySet)));
          assertTrue(entrySet.equals(new HashSet<Entry<K, V>>(entrySet)));
        }
    
        Object[] entrySetToArray1 = entrySet.toArray();
        assertEquals(map.size(), entrySetToArray1.length);
        assertTrue(asList(entrySetToArray1).containsAll(entrySet));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        try {
          requirements = FeatureUtil.getTesterRequirements(method);
        } catch (ConflictingRequirementsException e) {
          throw new RuntimeException(e);
        }
        if (!features.containsAll(requirements.getPresentFeatures())) {
          if (logger.isLoggable(FINER)) {
            Set<Feature<?>> missingFeatures = copyToSet(requirements.getPresentFeatures());
            missingFeatures.removeAll(features);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top