Package org.elasticsearch.common
Class Classes
- java.lang.Object
-
- org.elasticsearch.common.Classes
-
public class Classes extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetPackageName(Class<?> clazz)Determine the name of the package of the given class: e.g.static booleanisConcrete(Class<?> clazz)static booleanisInnerClass(Class<?> clazz)
-
-
-
Method Detail
-
getPackageName
public static String getPackageName(Class<?> clazz)
Determine the name of the package of the given class: e.g. "java.lang" for thejava.lang.Stringclass.- Parameters:
clazz- the class- Returns:
- the package name, or the empty String if the class is defined in the default package
-
isInnerClass
public static boolean isInnerClass(Class<?> clazz)
-
isConcrete
public static boolean isConcrete(Class<?> clazz)
-
-