Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 574 for Absent (0.09 seconds)

  1. guava/src/com/google/common/io/CharSource.java

       * opening the data stream.
       *
       * <p>The default implementation returns {@link Optional#absent}. Some sources, such as a {@code
       * CharSequence}, may return a non-absent value. Note that in such cases, it is <i>possible</i>
       * that this method will return a different number of chars than would be returned by reading all
       * of the chars.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testPollFirst() {
        assertEquals(a, navigableSet.pollFirst());
        assertEquals(values.subList(1, values.size()), copyToList(navigableSet));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> navigableSet.pollFirst());
      }
    
      @CollectionSize.Require(SEVERAL)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        assertWithMessage(rootLocaleFormat("%s must be inherited.", annotationClass))
            .that(annotationClass.getAnnotation(Inherited.class))
            .isNotNull();
    
        for (String propertyName : new String[] {"value", "absent"}) {
          Method method = null;
          try {
            method = annotationClass.getMethod(propertyName);
          } catch (NoSuchMethodException e) {
            throw new AssertionError("Annotation is missing required method", e);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/features/SetFeature.java

        return implied;
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
      public @interface Require {
        SetFeature[] value() default {};
    
        SetFeature[] absent() default {};
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapFeature.java

        return implied;
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
      public @interface Require {
        MultimapFeature[] value() default {};
    
        MultimapFeature[] absent() default {};
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/features/ListFeature.java

        return implied;
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
      @TesterAnnotation
      public @interface Require {
        ListFeature[] value() default {};
    
        ListFeature[] absent() default {};
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 2K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIsEmptyTester.java

      @CollectionSize.Require(ZERO)
      public void testIsEmpty_yes() {
        assertTrue("isEmpty() should return true", collection.isEmpty());
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testIsEmpty_no() {
        assertFalse("isEmpty() should return false", collection.isEmpty());
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionStreamTester.java

      /*
       * We're not really testing the implementation of Stream, only that we're getting a Stream
       * that corresponds to the expected elements.
       */
    
      @CollectionFeature.Require(absent = KNOWN_ORDER)
      public void testStreamToArrayUnknownOrder() {
        Helpers.assertEqualIgnoringOrder(getSampleElements(), asList(collection.stream().toArray()));
      }
    
      @CollectionFeature.Require(KNOWN_ORDER)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 31 14:51:04 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

      boolean allowsSelfLoops = false;
      ElementOrder<N> nodeOrder = ElementOrder.insertion();
      ElementOrder<N> incidentEdgeOrder = ElementOrder.unordered();
    
      Optional<Integer> expectedNodeCount = Optional.absent();
    
      /**
       * Creates a new instance with the specified edge directionality.
       *
       * @param directed if true, creates an instance for graphs whose edges are each directed; if
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        @DisplayName("Unknown DOS error code yields empty Optional")
        void testUnknownCode() {
            Optional<Integer> noMatch = findNtStatus(0xdeadbeef);
            assertFalse(noMatch.isPresent(), "Mapping for unknown code should be absent");
        }
    
        @Test
        @DisplayName("Mocked consumer receives correct NTSTATUS value")
        void testConsumerInteraction() {
            final int dosErr = 0x00010001;
            final int expectedNt = 0xc0000002;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top