Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for asEnumeration (0.06 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Enumeration<Integer> enumer = Iterators.asEnumeration(iter);
    
        assertFalse(enumer.hasMoreElements());
        assertThrows(NoSuchElementException.class, () -> enumer.nextElement());
      }
    
      public void testAsEnumerationSingleton() {
        Iterator<Integer> iter = ImmutableList.of(1).iterator();
        Enumeration<Integer> enumer = Iterators.asEnumeration(iter);
    
        assertTrue(enumer.hasMoreElements());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Enumeration<Integer> enumer = Iterators.asEnumeration(iter);
    
        assertFalse(enumer.hasMoreElements());
        assertThrows(NoSuchElementException.class, () -> enumer.nextElement());
      }
    
      public void testAsEnumerationSingleton() {
        Iterator<Integer> iter = ImmutableList.of(1).iterator();
        Enumeration<Integer> enumer = Iterators.asEnumeration(iter);
    
        assertTrue(enumer.hasMoreElements());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

       * you have a {@link Collection}), or {@code Iterators.asEnumeration(collection.iterator())}.
       */
      // This is an adapter for cases in which users do need an Enumeration for whatever reason.
      @SuppressWarnings("JdkObsolete")
      public static <T extends @Nullable Object> Enumeration<T> asEnumeration(Iterator<T> iterator) {
        checkNotNull(iterator);
        return new Enumeration<T>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
Back to top