mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-12617 requirements in extensionSymbols
This commit is contained in:
@@ -505,6 +505,11 @@ public class ContainerUtil extends ContainerUtilRt {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Contract(pure = true)
|
||||
public static <T> T getOrElse(@NotNull List<T> elements, int i, T defaultValue) {
|
||||
return elements.size() > i ? elements.get(i) : defaultValue;
|
||||
}
|
||||
|
||||
public static class ImmutableMapBuilder<K, V> {
|
||||
private final Map<K, V> myMap = new THashMap<K, V>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user