static <L,R> ImmutablePair<L,R>[] |
ImmutablePair.emptyArray() |
Returns the empty array singleton that can be assigned without compiler warning.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.nullPair() |
Returns an immutable pair of nulls.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.of(java.util.Map.Entry<L,R> pair) |
Creates an immutable pair from a map entry.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.of(L left,
R right) |
Creates an immutable pair of two objects inferring the generic types.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.ofNonNull(L left,
R right) |
Creates an immutable pair of two non-null objects inferring the generic types.
|