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

com.epam.jdi.light.elements.pageobjects.annotations.objects.FillFromAnnotationRules Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
package com.epam.jdi.light.elements.pageobjects.annotations.objects;

/**
 * Created by Roman Iovlev on 14.02.2018
 * Email: [email protected]; Skype: roman.iovlev
 */

import java.lang.reflect.Field;

import static com.epam.jdi.light.elements.pageobjects.annotations.WebAnnotationsUtil.hasAnnotation;
import static com.epam.jdi.tools.ReflectionUtils.isClass;

public class FillFromAnnotationRules {

    public static boolean fieldHasAnnotation(Field field, Class annotationClass, Class interfaceClass) {
        boolean isAnnotation = hasAnnotation(field, annotationClass);
        return isAnnotation && isClass(field, interfaceClass);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy