Package org.elasticsearch.common
Class Classes
java.lang.Object
org.elasticsearch.common.Classes
public class Classes
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static java.lang.String
getPackageName(java.lang.Class<?> clazz)
Determine the name of the package of the given class: e.g.static boolean
isConcrete(java.lang.Class<?> clazz)
static boolean
isInnerClass(java.lang.Class<?> clazz)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getPackageName
public static java.lang.String getPackageName(java.lang.Class<?> clazz)Determine the name of the package of the given class: e.g. "java.lang" for thejava.lang.String
class.- 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(java.lang.Class<?> clazz) -
isConcrete
public static boolean isConcrete(java.lang.Class<?> clazz)
-