Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for forEnumeration (0.2 sec)

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

       * a start position other than 0.
       */
    
      public void testForEnumerationEmpty() {
        Enumeration<Integer> enumer = enumerate();
        Iterator<Integer> iter = Iterators.forEnumeration(enumer);
    
        assertFalse(iter.hasNext());
        try {
          iter.next();
          fail();
        } catch (NoSuchElementException expected) {
        }
      }
    
      @SuppressWarnings("DoNotCall")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterators.java

       * return an {@code UnmodifiableIterator} instead of a plain {@code Iterator}.
       */
      public static <T extends @Nullable Object> UnmodifiableIterator<T> forEnumeration(
          Enumeration<T> enumeration) {
        checkNotNull(enumeration);
        return new UnmodifiableIterator<T>() {
          @Override
          public boolean hasNext() {
            return enumeration.hasMoreElements();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top