Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for firstEntry (0.26 sec)

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

        }
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

       */
      private transient int @Nullable [] successor;
    
      /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int firstEntry;
    
      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      CompactLinkedHashSet() {}
    
      CompactLinkedHashSet(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java

        return new SortedMultisets.ElementSet<E>(this);
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return comparator;
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        Iterator<Entry<E>> entryIterator = entryIterator();
        return entryIterator.hasNext() ? entryIterator.next() : null;
      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeRangeSet.java

              Cut<C> cut = (Cut<C>) key;
              // tailMap respects the current window
              Entry<Cut<C>, Range<C>> firstEntry = tailMap(cut, true).firstEntry();
              if (firstEntry != null && firstEntry.getKey().equals(cut)) {
                return firstEntry.getValue();
              }
            } catch (ClassCastException e) {
              return null;
            }
          }
          return null;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
        firstEntry = ENDPOINT;
        lastEntry = ENDPOINT;
        links = new long[expectedSize];
        Arrays.fill(links, UNSET);
      }
    
      @Override
      int firstIndex() {
        return (firstEntry == ENDPOINT) ? -1 : firstEntry;
      }
    
      @Override
      int nextIndex(int index) {
        int result = getSuccessor(index);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

          result.descendingMultiset = this;
          return descendingMultiset = result;
        }
        return result;
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
        return delegate().lastEntry();
      }
    
      @Override
      public @Nullable Entry<E> pollFirstEntry() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        }
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          Arrays.fill(hashTable, null);
          size = 0;
          for (ValueEntry<K, V> entry = firstEntry; entry != null; entry = entry.successorInValueSet) {
            multimapIterationChain.delete(entry);
            // TODO(cpovirk): Also clear *InValueSet (after reading next) and nextInValueBucket?
          }
          firstEntry = null;
          lastEntry = null;
          modCount++;
        }
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedMultisets.java

        @Override
        public @Nullable E ceiling(@ParametricNullness E e) {
          return getElementOrNull(multiset().tailMultiset(e, CLOSED).firstEntry());
        }
    
        @Override
        public @Nullable E higher(@ParametricNullness E e) {
          return getElementOrNull(multiset().tailMultiset(e, OPEN).firstEntry());
        }
    
        @Override
        public NavigableSet<E> descendingSet() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeMap.java

      }
    
      @Override
      public Range<K> span() {
        Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry();
        Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry();
        // Either both are null or neither is, but we check both to satisfy the nullness checker.
        if (firstEntry == null || lastEntry == null) {
          throw new NoSuchElementException();
        }
        return Range.create(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
Back to top