Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for Absent (0.03 sec)

  1. android/guava/src/com/google/common/base/Absent.java

    /** Implementation of an {@link Optional} not containing a reference. */
    @GwtCompatible
    final class Absent<T> extends Optional<T> {
      static final Absent<Object> INSTANCE = new Absent<>();
    
      @SuppressWarnings("unchecked") // implementation is "fully variant"
      static <T> Optional<T> withType() {
        return (Optional<T>) INSTANCE;
      }
    
      private Absent() {}
    
      @Override
      public boolean isPresent() {
        return false;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeySupported() {
        initMapWithNullKey();
        expectContents(createArrayWithNullKey());
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeyUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_presentNullValueUnsupported() {
        assertThrows(NullPointerException.class, () -> getMap().replace(k0(), null));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testReplace_absentNullValueUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_presentNullValueUnsupported() {
        assertThrows(NullPointerException.class, () -> getMap().replace(k0(), null));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testReplace_absentNullValueUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testToStringWithNullKey() {
        initMultimapWithNullKey();
        testToStringMatchesAsMap();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_VALUES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

            });
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutAll_unsupportedSomePresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> putAll(MinimalCollection.of(e3(), e0())));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_unsupported() {
        assertThrows(UnsupportedOperationException.class, () -> collection.remove(e0()));
        expectUnchanged();
        assertTrue("remove(present) should not remove the element", collection.contains(e0()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 21:04:02 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SetCreationTester<E> extends AbstractSetTester<E> {
      @CollectionFeature.Require(value = ALLOWS_NULL_VALUES, absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nullDuplicatesNotRejected() {
        E[] array = createArrayWithNullElement();
        array[0] = null;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

    public class MapComputeTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToPresent() {
        assertEquals(
            "Map.compute(absent, functionReturningValue) should return value",
            v3(),
            getMap()
                .compute(
                    k3(),
                    (k, v) -> {
                      assertEquals(k3(), k);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemoveNullValueForbidden() {
        assertThrows(NullPointerException.class, () -> multimap().remove(k0(), null));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testRemoveNullKeyForbidden() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top