Package io.activej.types
Class Utils
java.lang.Object
io.activej.types.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AgetAnnotation(Annotation[] annotations, Class<A> type) static <R,A extends Annotation>
RgetAnnotation(Annotation[] annotations, Class<A> type, Function<A, R> extractor) static <R> RgetAnnotation(Annotation[] annotations, Function<Annotation, @Nullable R> extractor) static booleanhasAnnotation(Annotation[] annotations, Class<? extends Annotation> type) static booleanhasAnnotation(Annotation[] annotations, Predicate<Class<Annotation>> type)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
hasAnnotation
-
hasAnnotation
-
getAnnotation
@Nullable public static <A extends Annotation> A getAnnotation(Annotation[] annotations, Class<A> type) -
getAnnotation
@Nullable public static <R,A extends Annotation> R getAnnotation(Annotation[] annotations, Class<A> type, Function<A, R> extractor) -
getAnnotation
@Nullable public static <R> R getAnnotation(Annotation[] annotations, Function<Annotation, @Nullable R> extractor)
-