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

com.github.leeonky.util.PropertyAccessor Maven / Gradle / Ivy

The newest version!
package com.github.leeonky.util;

import java.lang.annotation.Annotation;
import java.util.Optional;

public interface PropertyAccessor {

    String getName();

    Object tryConvert(Object value);

    BeanClass getBeanType();

    BeanClass getType();

    default Class getTypeClass() {
        return getType().getType();
    }

     A getAnnotation(Class annotationClass);

    default  Optional annotation(Class annotationClass) {
        return Optional.ofNullable(getAnnotation(annotationClass));
    }

    boolean isBeanProperty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy