is Class Boolean Type - Android java.lang.reflect

Android examples for java.lang.reflect:Class

Description

is Class Boolean Type

Demo Code


//package com.java2s;

public class Main {
    public static boolean isBooleanType(Class<?> type) {
        return (type == Boolean.class) || (type == Boolean.TYPE);
    }/*from w ww.j  a va 2 s .c  o  m*/
}

Related Tutorials