- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for firstEntry (0.09 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry()); assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry()); } @CollectionSize.Require(SEVERAL) public void testHigher() { resetWithHole(); assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry()); assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry()); } @CollectionSize.Require(SEVERAL) public void testHigher() { resetWithHole(); assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
} Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); Entry<K, V> firstEntry = iterator.next(); Entry<K, V> secondEntry = iterator.next(); K key = secondEntry.getKey(); SortedMap<K, V> subMap = map.tailMap(key); subMap.remove(key); assertNull(subMap.remove(firstEntry.getKey())); assertEquals(map.size(), oldSize - 1); assertFalse(map.containsKey(key));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 3.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashSet.java
*/ @CheckForNull private transient int[] successor; /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */ private transient int firstEntry; /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */ private transient int lastEntry; CompactLinkedHashSet() { super(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 09 00:15:47 UTC 2024 - 9.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java
super.resetMap(entries); navigableMap = (NavigableMap<K, V>) getMap(); } @CollectionSize.Require(ZERO) public void testEmptyMapFirst() { assertNull(navigableMap.firstEntry()); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(ZERO) public void testEmptyMapPollFirst() { assertNull(navigableMap.pollFirstEntry()); } @CollectionSize.Require(ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
assertTrue(Thread.holdsLock(mutex)); return delegate().descendingMap(); } @Override public @Nullable Entry<K, V> firstEntry() { assertTrue(Thread.holdsLock(mutex)); return delegate().firstEntry(); } @Override public @Nullable Entry<K, V> floorEntry(K key) { assertTrue(Thread.holdsLock(mutex)); return delegate().floorEntry(key);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 12.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java
result.descendingMultiset = this; return descendingMultiset = result; } return result; } @Override @CheckForNull public Entry<E> firstEntry() { return delegate().firstEntry(); } @Override @CheckForNull public Entry<E> lastEntry() { return delegate().lastEntry(); } @Override @CheckForNull public Entry<E> pollFirstEntry() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeRangeMap.java
} @Override public Range<K> span() { Entry<Cut<K>, RangeMapEntry<K, V>> firstEntry = entriesByLowerBound.firstEntry(); Entry<Cut<K>, RangeMapEntry<K, V>> lastEntry = entriesByLowerBound.lastEntry(); // Either both are null or neither is, but we check both to satisfy the nullness checker. if (firstEntry == null || lastEntry == null) { throw new NoSuchElementException(); } return Range.create(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
}); // requireNonNull is safe because the first `size` elements have been filled in. Entry<K, V> firstEntry = requireNonNull(entryArray[0]); K prevKey = firstEntry.getKey(); keys[0] = prevKey; values[0] = firstEntry.getValue(); checkEntryNotNull(keys[0], values[0]); for (int i = 1; i < size; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 9.4K bytes - Viewed (0)