Package | Description |
---|---|
org.springframework.data.util |
Core utility APIs such as a type information framework to resolve generic types.
|
Modifier and Type | Method and Description |
---|---|
static <S,T> Pair<S,T> |
Pair.of(S first,
T second)
Creates a new
Pair for the given elements. |
Modifier and Type | Method and Description |
---|---|
static <S,T> Collector<Pair<S,T>,?,Map<S,T>> |
Pair.toMap()
|
static <T,S> Optional<Pair<T,S>> |
Optionals.withBoth(Optional<T> left,
Optional<S> right)
Returns a
Pair if both Optional instances have values or Optional.empty() if one or both
are missing. |
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.