Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 285 for ABSENT (0.06 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        @TesterAnnotation
        @interface Require {
          ExampleFeature[] value() default {};
    
          ExampleFeature[] absent() default {};
        }
    
        @Retention(RUNTIME)
        @Inherited
        @interface NotTesterAnnotation {
          ExampleFeature[] value() default {};
    
          ExampleFeature[] absent() default {};
        }
      }
    
      public void testTestFeatureEnums() {
        // Haha! Let's test our own test rig!
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testToStringWithNullKey() {
        initMapWithNullKey();
        testToString_formatting();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      @MapFeature.Require(ALLOWS_NULL_VALUES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

                  });
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfPresent_unsupportedPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getMap().computeIfPresent(k0(), (k, v) -> v3()));
        expectUnchanged();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePropagatesToMultimap() {
        assertTrue(multimap().entries().remove(mapEntry(k0(), v0())));
        expectMissing(mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
        Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1));
        other.put(k3(), v3());
        assertFalse(
            "A Map should not equal another Map containing different entries.", getMap().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Optional.java

       * {@code Optional.empty}.
       */
      public static <T> Optional<T> absent() {
        return Absent.withType();
      }
    
      /**
       * Returns an {@code Optional} instance containing the given non-null reference. To have {@code
       * null} treated as {@link #absent}, use {@link #fromNullable} instead.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        assertThrows(UnsupportedOperationException.class, () -> collection.add(e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_unsupportedPresent() {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

        expectAdded(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAdd_unsupportedNotPresent() {
        assertThrows(UnsupportedOperationException.class, () -> collection.add(e3()));
        expectUnchanged();
        expectMissing(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_unsupportedPresent() {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

        new EqualsTester()
            .addEqualityGroup(
                getMultiset(), getSubjectGenerator().create(getSampleElements().toArray()))
            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testNotEqualsEmpty() {
        new EqualsTester()
            .addEqualityGroup(getMultiset())
            .addEqualityGroup(getSubjectGenerator().create())
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

        assertOneToOne();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testSetCount_oneToOne_removeSupported() {
        assertOneToOne();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(absent = {SUPPORTS_ADD, SUPPORTS_REMOVE})
      public void testSetCount_oneToOne_unsupported() {
        try {
          assertOneToOne();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top