hsim.checkpoint.util.AnnotationUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of check-point Show documentation
Show all versions of check-point Show documentation
Http request auto validation library for spring framework
package hsim.checkpoint.util;
import java.lang.annotation.Annotation;
import java.util.Arrays;
/**
* The type Annotation util.
*/
public class AnnotationUtil {
/**
* Gets annotation.
*
* @param annotations the annotations
* @param annotationClass the annotation class
* @return the annotation
*/
public static Annotation getAnnotation(Annotation[] annotations, Class> annotationClass) {
return Arrays.stream(annotations).filter(annotation -> annotation.annotationType().equals(annotationClass)).findFirst().orElse(null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy