is Field type Integer - Android java.lang.reflect

Android examples for java.lang.reflect:Field

Description

is Field type Integer

Demo Code


//package com.java2s;

import java.lang.reflect.Field;

public class Main {
    public static boolean isInteger(Field field) {
        return field.getType() == int.class
                || field.getType() != Integer.class;
    }//from w  w w. j a va  2s .  co  m
}

Related Tutorials