Home
last modified time | relevance | path

Searched refs:lastEntry (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/annotations/flagged_api/java/util/
DSequencedMap.annotated.java40 public default java.util.Map.Entry<K,V> lastEntry() { throw new RuntimeException("Stub!"); } in lastEntry() method
DNavigableMap.annotated.java60 public java.util.Map.Entry<K,V> lastEntry(); in lastEntry() method
DTreeMap.annotated.java83 public java.util.Map.Entry<K,V> lastEntry() { throw new RuntimeException("Stub!"); } in lastEntry() method in TreeMap
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentSkipListMapTest.java145 assertEquals("F", map.lastEntry().getKey()); in testLastEntry()
146 assertEquals("f", map.lastEntry().getValue()); in testLastEntry()
/libcore/ojluni/src/main/java/java/util/
DNavigableMap.java236 Map.Entry<K,V> lastEntry(); in lastEntry() method
DSequencedMap.java168 default Map.Entry<K,V> lastEntry() { in lastEntry() method
DReverseOrderSortedMapView.java146 return base.lastEntry();
149 public Map.Entry<K, V> lastEntry() {
DLinkedHashMap.java1267 return base.lastEntry(); in firstEntry()
1270 public Entry<K, V> lastEntry() { in lastEntry() method in LinkedHashMap.ReversedLinkedHashMapView
DCollections.java2270 public Entry<K, V> lastEntry() {
2271 Entry<K,V> last = (Entry<K, V>) nm.lastEntry();
3261 public Entry<K, V> lastEntry()
3262 { synchronized (mutex) { return nm.lastEntry(); } }
4515 public Entry<K, V> lastEntry() {
4516 Entry<K,V> last = nm.lastEntry();
6131 public E getLast() { return nsee(map().lastEntry()); }
DTreeMap.java979 public Map.Entry<K,V> lastEntry() { in lastEntry() method in TreeMap
1928 public final Map.Entry<K,V> lastEntry() { in lastEntry() method in TreeMap.NavigableSubMap
/libcore/ojluni/src/test/java/util/SequencedCollection/
DBasicMap.java535 assertThrows(UOE, () -> { map.lastEntry().setValue(99); }); in checkUnmodifiableEntry()
602 assertEquals(map.lastEntry(), ref.get(ref.size() - 1)); in testLastEntry()
603 assertEquals(map.reversed().lastEntry(), ref.get(0)); in testLastEntry()
604 assertThrows(UOE, () -> { map.lastEntry().setValue(99); }); in testLastEntry()
605 assertThrows(UOE, () -> { map.reversed().lastEntry().setValue(99); }); in testLastEntry()
618 assertNull(map.lastEntry()); in testEmptyLastEntry()
619 assertNull(map.reversed().lastEntry()); in testEmptyLastEntry()
962 case "lastEntry" -> checkEntry(map.lastEntry(), "two", null); in testNullableKeyValue()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRulesProvider.java144 assertEquals(versions.lastEntry().getValue(), rules); in test_getVersions_String()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DNavigableMap.annotated.java61 …a.util.Map.Entry<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> lastEntry(); in lastEntry() method
DTreeMap.annotated.java68 …y<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> lastEntry() { throw new Ru… in lastEntry() method in TreeMap
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java922 assertEquals(objArray[999].toString(), tm.lastEntry().getKey()); in test_lastEntry()
923 assertEquals(objArray[999], tm.lastEntry().getValue()); in test_lastEntry()
925 assertEquals(objArray[999].toString(), tm.lastEntry().getKey()); in test_lastEntry()
926 assertEquals(objArray[999], tm.lastEntry().getValue()); in test_lastEntry()
928 assertEquals(testint9999.toString(), tm.lastEntry().getKey()); in test_lastEntry()
929 Entry entry = tm.lastEntry(); in test_lastEntry()
933 assertNull(tm.lastEntry()); in test_lastEntry()
DTreeMapExtendTest.java97 assertNull(treeMap.lastEntry()); in test_TreeMap_Constructor_Default()
138 assertEquals(tm.lastEntry(), treeMap.lastEntry()); in test_TreeMap_Constructor_Map()
1616 descendingMap.lastEntry()); in test_AscendingSubMap_descendingMap()
1620 assertEquals(navigableMap_startExcluded_endExcluded.lastEntry(), in test_AscendingSubMap_descendingMap()
1631 descendingMap.lastEntry()); in test_AscendingSubMap_descendingMap()
1635 assertEquals(navigableMap_startExcluded_endIncluded.lastEntry(), in test_AscendingSubMap_descendingMap()
1646 descendingMap.lastEntry()); in test_AscendingSubMap_descendingMap()
1650 assertEquals(navigableMap_startIncluded_endExcluded.lastEntry(), in test_AscendingSubMap_descendingMap()
1661 descendingMap.lastEntry()); in test_AscendingSubMap_descendingMap()
1665 assertEquals(navigableMap_startIncluded_endIncluded.lastEntry(), in test_AscendingSubMap_descendingMap()
[all …]
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DConcurrentSkipListMap.annotated.java142 public java.util.Map.Entry<K,V> lastEntry() { throw new RuntimeException("Stub!"); } in lastEntry() method in ConcurrentSkipListMap
/libcore/luni/src/test/java/libcore/java/util/
DTreeMapTest.java129 assertImmutable(map.lastEntry()); in assertAllEntryMethodsReturnImmutableEntries()
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java1090 public java.util.Map.Entry<K, V> lastEntry() { in lastEntry() method in Collections.CheckedNavigableMap
2578 public java.util.Map.Entry<K, V> lastEntry() { in lastEntry() method in Collections.SynchronizedNavigableMap
3366 public java.util.Map.Entry<K, V> lastEntry() { in lastEntry() method in Collections.UnmodifiableNavigableMap
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java2075 public Map.Entry<K,V> lastEntry() { in lastEntry() method in ConcurrentSkipListMap
2856 public Map.Entry<K,V> lastEntry() { in lastEntry() method in ConcurrentSkipListMap.SubMap
/libcore/api/
Dcurrent.txt14594 method @Nullable public java.util.Map.Entry<K,V> lastEntry();
14999 method public default java.util.Map.Entry<K,V> lastEntry();
15334 method @Nullable public java.util.Map.Entry<K,V> lastEntry();
15854 method public java.util.Map.Entry<K,V> lastEntry();