Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
utils - added MoreAnnotations utility class
  • Loading branch information
fcamblor committed Sep 9, 2017
1 parent 04c4003 commit 98d8528
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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.