public class HasTypesCollectors extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends HasTypes> |
closestType(T hasTypes) |
static <T extends HasTypes> |
closestType(Type type) |
static <T extends HasTypes> |
closestTypes(T hasTypes) |
static <T extends HasTypes> |
closestTypes(Type type) |
static <T extends HasTypes> |
matchingType(T hasTypes) |
static <T extends HasTypes> |
matchingType(Type type)
Collect a single matching HasTypes.
|
static <T extends HasTypes> |
matchingTypes(T hasTypes) |
static <T extends HasTypes> |
matchingTypes(Type type)
Collect all matching HasTypes.
|
public static <T extends HasTypes> Collector<T,?,Optional<T>> matchingType(Type type)
T - type of HasTypestype - type to matchpublic static <T extends HasTypes> Collector<T,?,List<T>> matchingTypes(Type type)
T - type of HasTypestype - type to match