public interface TypeInfo<T>
| Modifier and Type | Method and Description |
|---|---|
T |
cast(Object instance) |
default Optional<T> |
ifInstance(Object instance) |
boolean |
isAssignable(TypeInfo<?> other) |
boolean |
isInstance(Object instance) |
static <T> TypeInfo<List<T>> |
listOf(TypeInfo<T> type) |
static <K,V> TypeInfo<Map<K,V>> |
mapOf(TypeInfo<K> key,
TypeInfo<V> value) |
static <T> TypeInfo<T> |
of(Class<T> type) |
Copyright © 2025. All rights reserved.