mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
notnull
This commit is contained in:
@@ -16,16 +16,19 @@
|
||||
package com.intellij.openapi.util;
|
||||
|
||||
import com.intellij.util.Function;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Pair<A, B> {
|
||||
public final A first;
|
||||
public final B second;
|
||||
|
||||
@NotNull
|
||||
public static <A, B> Pair<A, B> create(A first, B second) {
|
||||
return new Pair<A, B>(first, second);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static <A, B> Function<A, Pair<A, B>> createFunction(@Nullable final B value) {
|
||||
return new Function<A, Pair<A, B>>() {
|
||||
public Pair<A, B> fun(A a) {
|
||||
|
||||
Reference in New Issue
Block a user