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 <T> Lazy<T> |
Lazy.empty()
Creates a pre-resolved empty
Lazy . |
<S> Lazy<S> |
Lazy.flatMap(Function<? super T,Lazy<? extends S>> function)
|
static <T> Lazy<T> |
BeanLookup.lazyIfAvailable(Class<T> type,
BeanFactory beanFactory)
Returns a
Lazy for the unique bean of the given type from the given BeanFactory (which needs to be
a ListableBeanFactory ). |
<S> Lazy<S> |
Lazy.map(Function<? super T,? extends S> function)
|
static <T> Lazy<T> |
Lazy.of(Supplier<? extends T> supplier)
Creates a new
Lazy to produce an object lazily. |
static <T> Lazy<T> |
Lazy.of(T value)
Creates a new
Lazy to return the given value. |
Lazy<T> |
Lazy.or(Supplier<? extends T> supplier)
Returns a new Lazy that will consume the given supplier in case the current one does not yield in a result.
|
Lazy<T> |
Lazy.or(T value)
Returns a new Lazy that will return the given value in case the current one does not yield in a result.
|
Modifier and Type | Method and Description |
---|---|
<S> Lazy<S> |
Lazy.flatMap(Function<? super T,Lazy<? extends S>> function)
|
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.