Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for lastEntry (0.1 sec)

  1. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        assertNull(forwarding.lastEntry());
        forwarding.put("b", 2);
        assertEquals(immutableEntry("b", 2), forwarding.lastEntry());
        forwarding.put("c", 3);
        assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
        forwarding.put("a", 1);
        assertEquals(immutableEntry("c", 3), forwarding.lastEntry());
        forwarding.remove("c");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

        return Multisets.immutableEntry(entry.getElement(), entry.getCount());
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return delegate().lastEntry();
      }
    
      /**
       * A sensible definition of {@link #lastEntry()} in terms of {@code
       * descendingMultiset().entrySet().iterator()}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

      @Override
      @ParametricNullness
      public K lastKey() {
        Entry<K, V> entry = lastEntry();
        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        }
    
        if (succ == ENDPOINT) {
          lastEntry = pred;
        } else {
          setPredecessor(succ, pred);
        }
      }
    
      @Override
      void insertEntry(
          int entryIndex, @ParametricNullness K key, @ParametricNullness V value, int hash, int mask) {
        super.insertEntry(entryIndex, key, value, hash, mask);
        setSucceeds(lastEntry, entryIndex);
        setSucceeds(entryIndex, ENDPOINT);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractNavigableMap.java

      @Override
      @ParametricNullness
      public K lastKey() {
        Entry<K, V> entry = lastEntry();
        if (entry == null) {
          throw new NoSuchElementException();
        } else {
          return entry.getKey();
        }
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lowerEntry(@ParametricNullness K key) {
        return headMap(key, false).lastEntry();
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        return Multisets.immutableEntry(entry.getElement(), entry.getCount());
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return delegate().lastEntry();
      }
    
      /**
       * A sensible definition of {@link #lastEntry()} in terms of {@code
       * descendingMultiset().entrySet().iterator()}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedMultisets.java

        @CheckForNull
        public E lower(@ParametricNullness E e) {
          return getElementOrNull(multiset().headMultiset(e, OPEN).lastEntry());
        }
    
        @Override
        @CheckForNull
        public E floor(@ParametricNullness E e) {
          return getElementOrNull(multiset().headMultiset(e, CLOSED).lastEntry());
        }
    
        @Override
        @CheckForNull
        public E ceiling(@ParametricNullness E e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

      public int count(@CheckForNull Object element) {
        return forward.count(element);
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return forward.lastEntry();
      }
    
      @Override
      @CheckForNull
      public Entry<E> lastEntry() {
        return forward.firstEntry();
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      private transient int lastEntry;
    
      CompactLinkedHashSet() {
        super();
      }
    
      CompactLinkedHashSet(int expectedSize) {
        super(expectedSize);
      }
    
      @Override
      void init(int expectedSize) {
        super.init(expectedSize);
        this.firstEntry = ENDPOINT;
        this.lastEntry = ENDPOINT;
      }
    
      @Override
      int allocArrays() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 00:15:47 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

        assertNull(navigableMap.higherEntry(k0()));
        assertNull(navigableMap.higherKey(k0()));
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapLast() {
        assertNull(navigableMap.lastEntry());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testEmptyMapPollLast() {
        assertNull(navigableMap.pollLastEntry());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top