Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for firstEntry (0.04 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      }
    
      @Override
      Entry<E> getEntry(int index) {
        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return isEmpty() ? null : getEntry(0);
      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
        return isEmpty() ? null : getEntry(length - 1);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

          return standardHigherEntry(key);
        }
    
        @Override
        public @Nullable K higherKey(K key) {
          return standardHigherKey(key);
        }
    
        @Override
        public @Nullable Entry<K, V> firstEntry() {
          return standardFirstEntry();
        }
    
        /*
         * We can't override lastEntry to delegate to standardLastEntry, as it would create an infinite
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * @param map the sequenced map
         * @return the first entry, or null if the map is empty
         * @since Java 21
         */
        public static <K, V> Map.Entry<K, V> firstEntry(final SequencedMap<K, V> map) {
            return map.isEmpty() ? null : map.firstEntry();
        }
    
        /**
         * Returns the last entry of a sequenced map.
         *
         * @param <K> the key type
         * @param <V> the value type
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            long firstRetry = state.getNextRetryTime();
            state.incrementRetry();
    
            long secondRetry = state.getNextRetryTime();
            state.incrementRetry();
    
            long thirdRetry = state.getNextRetryTime();
    
            // Should have exponential backoff
            assertTrue(secondRetry > firstRetry);
            assertTrue(thirdRetry > secondRetry);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top