is a Static field - Android java.lang.reflect

Android examples for java.lang.reflect:Field Static

Description

is a Static field

Demo Code


//package com.java2s;

import java.lang.reflect.Field;

import java.lang.reflect.Modifier;

public class Main {
    /**//w w  w. j av  a2 s  .  co m
     * @return True if the {@link Field} is static.
     */
    public final static boolean isStatic(Field field) {
        final int modifiers = field.getModifiers();
        return (Modifier.isStatic(modifiers));
    }
}

Related Tutorials