is Default Modifier - Java Reflection

Java examples for Reflection:Modifier

Description

is Default Modifier

Demo Code


//package com.java2s;
import java.lang.reflect.Modifier;

public class Main {
    public static boolean isDefault(int modifier) {
        return Modifier.isPublic(modifier)
                && !Modifier.isAbstract(modifier);
    }//from  w ww  . ja v  a2s . co  m
}

Related Tutorials