Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for firstEntry (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry());
        assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigher() {
        resetWithHole();
        assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry());
        assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigher() {
        resetWithHole();
        assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

        return keyOrNull(higherEntry(key));
      }
    
      @Override
      public @Nullable Entry<K, V> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry} in terms of the {@code iterator()} of {@link
       * #entrySet}. If you override {@code entrySet}, you may wish to override {@code firstEntry} to
       * forward to this implementation.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingNavigableMap.java

        return keyOrNull(higherEntry(key));
      }
    
      @Override
      public @Nullable Entry<K, V> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry} in terms of the {@code iterator()} of {@link
       * #entrySet}. If you override {@code entrySet}, you may wish to override {@code firstEntry} to
       * forward to this implementation.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        valueIterator.next();
        valueIterator.remove();
        assertFalse(underlying.containsKey("e"));
    
        Set<Entry<String, String>> entries = map.entrySet();
        Entry<String, String> firstEntry = entries.iterator().next();
        entries.remove(firstEntry);
        assertFalse(underlying.containsKey("f"));
    
        Iterator<Entry<String, String>> entryIterator = entries.iterator();
        entryIterator.next();
        entryIterator.remove();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        public @Nullable K higherKey(@ParametricNullness K key) {
          return sortedMap().higherKey(key);
        }
    
        @Override
        public @Nullable Entry<K, Collection<V>> firstEntry() {
          Entry<K, Collection<V>> entry = sortedMap().firstEntry();
          return (entry == null) ? null : wrapEntry(entry);
        }
    
        @Override
        public @Nullable Entry<K, Collection<V>> lastEntry() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
Back to top