Here you can find the source of getAnnotationClass(Annotation annotation)
Parameter | Description |
---|---|
annotation | the impl |
public static Class<? extends Annotation> getAnnotationClass(Annotation annotation)
//package com.java2s; /*//from w w w.j a v a 2 s . c o m * dataZ - Test Support For Data Stores. * * Copyright 2014-2017 the original author or authors. * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution and is available at * * http://www.eclipse.org/legal/epl-v10.html */ import java.lang.annotation.Annotation; public class Main { /** * Resolve the impl's class. * * @param annotation the impl * * @return the class object of the impl. */ public static Class<? extends Annotation> getAnnotationClass(Annotation annotation) { return annotation.annotationType(); } }