All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.jdi.uitests.win.winnium.driver.FillFromAnnotationRules Maven / Gradle / Ivy

The newest version!
package com.epam.jdi.uitests.win.winnium.driver;

import java.lang.reflect.Field;

import static com.epam.commons.ReflectionUtils.isInterface;

/**
 * Created by 12345 on 17.05.2016.
 */
public class FillFromAnnotationRules {
    public static boolean fieldHasAnnotation(Field field, Class annotationClass, Class interfaceClass) {
        return isInterface(field, interfaceClass) && field.isAnnotationPresent(annotationClass);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy