mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@Nullable
This commit is contained in:
@@ -17,6 +17,7 @@ package com.intellij.util.containers.hash;
|
||||
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -211,10 +212,12 @@ public class LinkedHashMap<K, V> extends AbstractMap<K, V> implements Map<K, V>
|
||||
size = 0;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public K getLastKey() {
|
||||
return top != null ? top.key : null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public V getLastValue() {
|
||||
return top != null ? top.value : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user