Permalink
Browse files

utils - added MoreAnnotations utility class

  • Loading branch information...
fcamblor committed Sep 3, 2017
1 parent 04c4003 commit 98d852857c35175f1b8c0502dccb57e06d96e14f
Showing with 15 additions and 0 deletions.
  1. +15 −0 restx-common/src/main/java/restx/common/MoreAnnotations.java
@@ -0,0 +1,15 @@
package restx.common;
import com.google.common.base.Function;
import java.lang.annotation.Annotation;
public class MoreAnnotations {
public static final Function<Annotation, Class<? extends Annotation>> EXTRACT_ANNOTATION_TYPE = new Function<Annotation, Class<? extends Annotation>>() {
@Override
public Class<? extends Annotation> apply(Annotation input) {
return input.annotationType();
}
};
}

0 comments on commit 98d8528

Please sign in to comment.