@Value.Immutable public abstract class Pair<FIRST,SECOND> extends Object
| Constructor and Description |
|---|
Pair() |
| Modifier and Type | Method and Description |
|---|---|
abstract FIRST |
first() |
<FIRST_MAPPED,SECOND_MAPPED> |
map(Function<FIRST,FIRST_MAPPED> first,
Function<SECOND,SECOND_MAPPED> second) |
<T> Pair<T,SECOND> |
mapFirst(Function<FIRST,T> transformation) |
<T> Pair<FIRST,T> |
mapSecond(Function<SECOND,T> transformation) |
static <FIRST,SECOND> |
of(FIRST first,
SECOND second) |
abstract SECOND |
second() |
@Value.Parameter public abstract FIRST first()
@Value.Parameter public abstract SECOND second()
public <FIRST_MAPPED,SECOND_MAPPED> Pair<FIRST_MAPPED,SECOND_MAPPED> map(Function<FIRST,FIRST_MAPPED> first, Function<SECOND,SECOND_MAPPED> second)
public static <FIRST,SECOND> Pair<FIRST,SECOND> of(FIRST first, SECOND second)
Copyright © 2023. All rights reserved.