public class FieldPredicates
extends java.lang.Object
Field
objects.Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<java.lang.reflect.Field> |
annotated() |
static java.util.function.Predicate<java.lang.reflect.Field> |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
static java.util.function.Predicate<java.lang.reflect.Field> |
assignableTo(java.lang.Class type) |
static java.util.function.Predicate<java.lang.reflect.Field> |
type(java.lang.Class type) |
public static java.util.function.Predicate<java.lang.reflect.Field> type(java.lang.Class type)
true
if a field is of the
given type.public static java.util.function.Predicate<java.lang.reflect.Field> assignableTo(java.lang.Class type)
true
if a field is assignable
to the given type.public static java.util.function.Predicate<java.lang.reflect.Field> annotated()
true
if a field has at least
one annotation.public static java.util.function.Predicate<java.lang.reflect.Field> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
true
if a field is annotated
with the given annotation.