is Field Transient - Java Reflection

Java examples for Reflection:Field

Description

is Field Transient

Demo Code


import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class Main{
    public static boolean isTransient(Field field) {
        return field.isAnnotationPresent(Transient.class);
    }/* w  w  w . ja  va 2  s  .  co  m*/
}

Related Tutorials