Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pollNext (0.1 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

        };
      }
    
      /**
       * Deletes and returns the next value from the iterator, or returns {@code null} if there is no
       * such value.
       */
      @CheckForNull
      static <T extends @Nullable Object> T pollNext(Iterator<T> iterator) {
        if (iterator.hasNext()) {
          T result = iterator.next();
          iterator.remove();
          return result;
        } else {
          return null;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top