- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 55 for lastKey (0.2 sec)
-
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
@Override public K firstKey() { assertTrue(Thread.holdsLock(mutex)); return delegate().firstKey(); } @Override public K lastKey() { assertTrue(Thread.holdsLock(mutex)); return delegate().lastKey(); } private static final long serialVersionUID = 0; } public static TestSuite suite() { TestSuite suite = new TestSuite();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 12.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java
unfiltered.put("dog", 5); SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); assertEquals("banana", filtered.firstKey()); assertEquals("cat", filtered.lastKey()); } public void testHeadSubTailMap_FilteredMap() { SortedMap<String, Integer> unfiltered = createUnfiltered(); unfiltered.put("apple", 2); unfiltered.put("banana", 6); unfiltered.put("cat", 4);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingNavigableMap.java
return Iterables.<@Nullable Entry<K, V>>getFirst(descendingMap().entrySet(), null); } /** * A sensible definition of {@link #lastKey} in terms of {@code lastEntry}. If you override {@code * lastEntry}, you may wish to override {@code lastKey} to forward to this implementation. */ protected K standardLastKey() { Entry<K, V> entry = lastEntry(); if (entry == null) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Jun 15 18:11:44 GMT 2023 - 14.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractNavigableMap.java
Entry<K, V> entry = firstEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } } @Override @ParametricNullness public K lastKey() { Entry<K, V> entry = lastEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } } @Override @CheckForNull
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Jun 15 18:11:44 GMT 2023 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingNavigableMap.java
return Iterables.<@Nullable Entry<K, V>>getFirst(descendingMap().entrySet(), null); } /** * A sensible definition of {@link #lastKey} in terms of {@code lastEntry}. If you override {@code * lastEntry}, you may wish to override {@code lastKey} to forward to this implementation. */ protected K standardLastKey() { Entry<K, V> entry = lastEntry(); if (entry == null) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 15 18:11:44 GMT 2023 - 14.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
return standardFirstKey(); } @Override public SortedMap<K, V> headMap(K toKey) { return standardHeadMap(toKey); } @Override public K lastKey() { return standardLastKey(); } @Override public SortedMap<K, V> tailMap(K fromKey) { return standardTailMap(fromKey); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractNavigableMap.java
Entry<K, V> entry = firstEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } } @Override @ParametricNullness public K lastKey() { Entry<K, V> entry = lastEntry(); if (entry == null) { throw new NoSuchElementException(); } else { return entry.getKey(); } } @Override @CheckForNull
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 15 18:11:44 GMT 2023 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
return standardFirstKey(); } @Override public SortedMap<K, V> headMap(K toKey) { return standardHeadMap(toKey); } @Override public K lastKey() { return standardLastKey(); } @Override public SortedMap<K, V> tailMap(K fromKey) { return standardTailMap(fromKey); } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 9.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java
return comparator; } @CheckForNull public K firstKey() { return sortedDelegate.firstKey(); } @CheckForNull public K lastKey() { return sortedDelegate.lastKey(); } @CheckForNull K higher(K k) { Iterator<K> iterator = keySet().tailSet(k).iterator(); while (iterator.hasNext()) { K tmp = iterator.next();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 16.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
@Override @ParametricNullness public K firstKey() { return sortedMap().firstKey(); } @Override @ParametricNullness public K lastKey() { return sortedMap().lastKey(); } @Override public SortedMap<K, Collection<V>> headMap(@ParametricNullness K toKey) { return new SortedAsMap(sortedMap().headMap(toKey)); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 48K bytes - Viewed (0)