Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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.
       */
      static <T extends @Nullable Object> @Nullable T pollNext(Iterator<T> iterator) {
        if (iterator.hasNext()) {
          T result = iterator.next();
          iterator.remove();
          return result;
        } else {
          return null;
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 12:42:11 UTC 2025
    - 51.4K bytes
    - Viewed (0)
Back to top