Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 72 for get_num_elements (0.16 sec)

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

      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutDuplicateValuePreservesSize() {
        assertFalse(multimap().put(k0(), v0()));
        assertEquals(getNumElements(), multimap().size());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutDuplicateValue() {
        List<Entry<K, V>> entries = copyToList(multimap().entries());
    
        for (Entry<K, V> entry : entries) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testHashCode_containingNull() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        int expectedHashCode = 0;
        for (E element : elements) {
          expectedHashCode += ((element == null) ? 0 : element.hashCode());
        }
    
        elements.add(null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemove() {
        assertContentsInOrder(multimap().asMap().remove(k0()), v0());
        assertGet(k0());
        assertEquals(getNumElements() - 1, multimap().size());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAsMapEntrySetReflectsPutSameKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
        return getSampleElements(howMany);
      }
    
      protected Collection<Entry<K, V>> getSampleEntries() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

        return entries;
      }
    
      private void expectFirstRemoved(Entry<K, V>[] entries) {
        resetMap(entries);
    
        List<Entry<K, V>> expectedWithDuplicateRemoved = asList(entries).subList(1, getNumElements());
        expectContents(expectedWithDuplicateRemoved);
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testCreateWithNullKeyUnsupported()} so that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

        super.setUp();
        navigableSet = (NavigableSet<E>) getSet();
        values =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(values, navigableSet.comparator());
    
        // some tests assume SEVERAL == 3
        if (values.size() >= 1) {
          a = values.get(0);
          if (values.size() >= 3) {
            b = values.get(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemove() {
        assertContentsInOrder(multimap().asMap().remove(k0()), v0());
        assertGet(k0());
        assertEquals(getNumElements() - 1, multimap().size());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAsMapEntrySetReflectsPutSameKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
        assertEquals(getNumElements() - 1, multimap().size());
        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
        assertEquals(getNumElements() - 1, multimap().size());
        assertGet(k0(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
        return getSampleElements(howMany);
      }
    
      protected Collection<Entry<K, V>> getSampleEntries() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top