Skip to content

Commit 98d8528

Browse files
committed
utils - added MoreAnnotations utility class
1 parent 04c4003 commit 98d8528

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package restx.common;
2+
3+
import com.google.common.base.Function;
4+
5+
import java.lang.annotation.Annotation;
6+
7+
public class MoreAnnotations {
8+
public static final Function<Annotation, Class<? extends Annotation>> EXTRACT_ANNOTATION_TYPE = new Function<Annotation, Class<? extends Annotation>>() {
9+
@Override
10+
public Class<? extends Annotation> apply(Annotation input) {
11+
return input.annotationType();
12+
}
13+
};
14+
15+
}

0 commit comments

Comments
 (0)