Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pollNext (0.27 sec)

  1. guava/src/com/google/common/collect/AbstractNavigableMap.java

      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollLastEntry() {
        return Iterators.pollNext(descendingEntryIterator());
      }
    
      @Override
      @ParametricNullness
      public K firstKey() {
        Entry<K, V> entry = firstEntry();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollLastEntry() {
        return Iterators.pollNext(descendingEntryIterator());
      }
    
      @Override
      @ParametricNullness
      public K firstKey() {
        Entry<K, V> entry = firstEntry();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

       * override {@link #iterator} you may wish to override {@link #pollFirst} to forward to this
       * implementation.
       */
      @CheckForNull
      protected E standardPollFirst() {
        return Iterators.pollNext(iterator());
      }
    
      @Override
      @CheckForNull
      public E pollLast() {
        return delegate().pollLast();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. 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