- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 13 for firstRef (0.05 seconds)
-
guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java
assertThrows(NoSuchElementException.class, () -> navigableMap.firstKey()); } @CollectionSize.Require(ZERO) public void testEmptyMapLast() { assertThrows(NoSuchElementException.class, () -> assertNull(navigableMap.lastKey())); } @CollectionSize.Require(ONE) public void testSingletonMapFirst() { assertEquals(a.getKey(), navigableMap.firstKey()); } @CollectionSize.Require(ONE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java
assertThrows(NoSuchElementException.class, () -> navigableMap.firstKey()); } @CollectionSize.Require(ZERO) public void testEmptyMapLast() { assertThrows(NoSuchElementException.class, () -> assertNull(navigableMap.lastKey())); } @CollectionSize.Require(ONE) public void testSingletonMapFirst() { assertEquals(a.getKey(), navigableMap.firstKey()); } @CollectionSize.Require(ONE)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
public Comparator<? super K> comparator() { assertTrue(Thread.holdsLock(mutex)); return delegate().comparator(); } @Override public K firstKey() { assertTrue(Thread.holdsLock(mutex)); return delegate().firstKey(); } @Override public K lastKey() { assertTrue(Thread.holdsLock(mutex)); return delegate().lastKey(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 12.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
delegate().clear(); } }; } @Override public @Nullable Entry<K, V> firstEntry() { return delegate.firstEntry(); } @Override public K firstKey() { return delegate.firstKey(); } @Override public @Nullable Entry<K, V> floorEntry(K key) { return delegate.floorEntry(checkValid(key)); } @Override public @Nullable K floorKey(K key) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 7.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/FilteredSortedMapTest.java
unfiltered.put("banana", 6); unfiltered.put("cat", 3); unfiltered.put("dog", 5); SortedMap<String, Integer> filtered = Maps.filterEntries(unfiltered, CORRECT_LENGTH); assertThat(filtered.firstKey()).isEqualTo("banana"); assertThat(filtered.lastKey()).isEqualTo("cat"); } public void testHeadSubTailMap_filteredMap() { SortedMap<String, Integer> unfiltered = createUnfiltered();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
delegate().clear(); } }; } @Override public @Nullable Entry<K, V> firstEntry() { return delegate.firstEntry(); } @Override public K firstKey() { return delegate.firstKey(); } @Override public @Nullable Entry<K, V> floorEntry(K key) { return delegate.floorEntry(checkValid(key)); } @Override public @Nullable K floorKey(K key) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 7.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
TreeMultimap<String, Integer> multimap = createPopulate(); SortedMap<String, Collection<Integer>> asMap = multimap.asMap(); assertEquals(Ordering.natural(), asMap.comparator()); assertThat(asMap.firstKey()).isEqualTo("foo"); assertThat(asMap.lastKey()).isEqualTo("tree"); Set<Integer> fooValues = ImmutableSet.of(1, 3, 7); Set<Integer> googleValues = ImmutableSet.of(2, 6);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
@Override public @Nullable Comparator<? super K> comparator() { return fromMap().comparator(); } @Override @ParametricNullness public K firstKey() { return fromMap().firstKey(); } @Override public SortedMap<K, V2> headMap(@ParametricNullness K toKey) { return transformEntries(fromMap().headMap(toKey), transformer); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 157.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Maps.java
@Override public @Nullable Comparator<? super K> comparator() { return fromMap().comparator(); } @Override @ParametricNullness public K firstKey() { return fromMap().firstKey(); } @Override public SortedMap<K, V2> headMap(@ParametricNullness K toKey) { return transformEntries(fromMap().headMap(toKey), transformer); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 163.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeBasedTableTest.java
} public void testRowMapFirstKey() { sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertThat(sortedTable.rowMap().firstKey()).isEqualTo("bar"); } public void testRowMapLastKey() { sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); assertThat(sortedTable.rowMap().lastKey()).isEqualTo("foo"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15.3K bytes - Click Count (0)