Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,345 for absent (0.08 sec)

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

      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutAllRejectsNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), null));
        assertThrows(NullPointerException.class, () -> multimap().putAll(source));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAllRejectsNullKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutAllRejectsNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), null));
        assertThrows(NullPointerException.class, () -> multimap().putAll(source));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAllRejectsNullKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetContainsTester<E> extends AbstractMultisetTester<E> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllMultisetIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(getSubjectGenerator().create(e0(), e0(), e0())));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllListIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(asList(e0(), e0(), e0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetContainsTester<E> extends AbstractMultisetTester<E> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllMultisetIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(getSubjectGenerator().create(e0(), e0(), e0())));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllListIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(asList(e0(), e0(), e0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListCreationTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class ListCreationTester<E> extends AbstractListTester<E> {
      @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates() {
        E[] array = createSamplesArray();
        array[1] = e0();
        collection = getSubjectGenerator().create(array);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FluentIterable.java

      // To avoid a self retain cycle under j2objc, we store Optional.absent() instead of
      // Optional.of(this). To access the delegate iterable, call #getDelegate(), which converts to
      // absent() back to 'this'.
      private final Optional<Iterable<E>> iterableDelegate;
    
      /** Constructor for use by subclasses. */
      protected FluentIterable() {
        this.iterableDelegate = Optional.absent();
      }
    
      FluentIterable(Iterable<E> iterable) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       *
       * - Define putIfAbsent and replace as treating zero and absent identically (as currently
       *   implemented below). This is a bit surprising with putIfAbsent, which really becomes
       *   putIfZero.
       *
       * - Allow putIfAbsent and replace to distinguish between zero and absent, but don't implement
       *   remove(K, long). Without any two-phase operations it becomes feasible for all remaining
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
      public @interface Require {
        public abstract MultisetFeature[] value() default {};
    
        public abstract MultisetFeature[] absent() default {};
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

      public void testAsMapGetNullKeyAbsent() {
        assertNull(multimap().asMap().get(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyUnsupported() {
        assertThrows(NullPointerException.class, () -> multimap().asMap().get(null));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

            iterator.hasNext());
        iterator.remove();
        assertTrue(
            "multiset isn't empty after multiset.entrySet() iterator.remove()",
            getMultiset().isEmpty());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testEntrySet_removePresent() {
        assertTrue(
            "multiset.entrySet.remove(presentEntry) returned false",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top