@Value.Immutable public abstract class TypeCheckPredicate<T> extends Object implements Predicate<T>
| Constructor and Description |
|---|
TypeCheckPredicate() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Predicate<T> |
check() |
static <T> TypeCheckPredicate<T> |
isInstanceOf(Class<T> type) |
static <T> TypeCheckPredicate<T> |
of(Class<T> type,
Predicate<T> check) |
boolean |
test(T t) |
protected abstract Class<T> |
typeClass() |
public static <T> TypeCheckPredicate<T> of(Class<T> type, Predicate<T> check)
public static <T> TypeCheckPredicate<T> isInstanceOf(Class<T> type)
Copyright © 2021. All rights reserved.