- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 43 for lastKey (0.1 sec)
-
guava/src/com/google/common/collect/TreeBasedTable.java
} return ((SortedMap<C, V>) backingRowMap).firstKey(); } @Override public C lastKey() { updateBackingRowMapField(); if (backingRowMap == null) { throw new NoSuchElementException(); } return ((SortedMap<C, V>) backingRowMap).lastKey(); } @CheckForNull transient SortedMap<C, V> wholeRow;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jun 15 18:11:44 UTC 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); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 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();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 27 19:19:19 UTC 2024 - 16.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 161.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 167.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
SortedMap<String, Collection<Integer>> asMap = multimap.asMap(); assertEquals(Ordering.natural(), asMap.comparator()); assertEquals("foo", asMap.firstKey()); assertEquals("tree", asMap.lastKey()); Set<Integer> fooValues = ImmutableSet.of(1, 3, 7); Set<Integer> googleValues = ImmutableSet.of(2, 6); Set<Integer> treeValues = ImmutableSet.of(4, 0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeBasedTableTest.java
assertSame("bar", sortedTable.rowMap().firstKey()); } public void testRowMapLastKey() { sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertSame("foo", sortedTable.rowMap().lastKey()); } public void testRowKeyMapHeadMap() { sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); Map<String, Map<Integer, Character>> map = sortedTable.rowMap().headMap("cat");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
removeFromReplica(replica, replicatedMinValue); } private static void removeMaxFromReplica( SortedMap<Integer, AtomicInteger> replica, int maxValue) { Integer replicatedMaxValue = replica.lastKey(); assertTrue("maxValue is incorrect", replicatedMaxValue == maxValue); removeFromReplica(replica, replicatedMaxValue); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Synchronized.java
synchronized (mutex) { return sortedMap(delegate().headMap(toKey), mutex); } } @Override public K lastKey() { synchronized (mutex) { return delegate().lastKey(); } } @Override public SortedMap<K, V> subMap(K fromKey, K toKey) { synchronized (mutex) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53.4K bytes - Viewed (0)