@Immutable public interface Capture
Modifier and Type | Method and Description |
---|---|
default <T> Optional<T> |
as(Class<T> type) |
<T> Optional<T> |
as(com.google.common.reflect.TypeToken<T> type) |
default boolean |
has(Class<?> type) |
boolean |
has(com.google.common.reflect.TypeToken<?> type) |
static <T> com.google.common.reflect.TypeToken<List<T>> |
listOf(Class<T> entityType) |
static <T> com.google.common.reflect.TypeToken<List<T>> |
listOf(com.google.common.reflect.TypeToken<T> entityType) |
static Capture |
none() |
default <T> T |
to(Class<T> type) |
default <T> T |
to(com.google.common.reflect.TypeToken<T> type) |
static <T> Capture |
valueOf(T value) |
static <T> Capture |
valueOf(T value,
Class<T> type) |
static <T> Capture |
valueOf(T value,
com.google.common.reflect.TypeToken<T> type) |
default boolean has(Class<?> type)
boolean has(com.google.common.reflect.TypeToken<?> type)
<T> Optional<T> as(com.google.common.reflect.TypeToken<T> type)
default <T> T to(Class<T> type)
default <T> T to(com.google.common.reflect.TypeToken<T> type)
static Capture none()
static <T> com.google.common.reflect.TypeToken<List<T>> listOf(com.google.common.reflect.TypeToken<T> entityType)
Copyright © 2015 Zalando SE. All rights reserved.