Class Assert
- java.lang.Object
-
- nonapi.io.github.classgraph.utils.Assert
-
public final class Assert extends java.lang.ObjectAssertions.
-
-
Constructor Summary
Constructors Constructor Description Assert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidisAnnotation(java.lang.Class<?> clazz)ThrowIllegalArgumentExceptionif the class is not an annotation.static voidisInterface(java.lang.Class<?> clazz)ThrowIllegalArgumentExceptionif the class is not an interface.
-
-
-
Method Detail
-
isAnnotation
public static void isAnnotation(java.lang.Class<?> clazz)
ThrowIllegalArgumentExceptionif the class is not an annotation.- Parameters:
clazz- the class.- Throws:
java.lang.IllegalArgumentException- if the class is not an annotation.
-
isInterface
public static void isInterface(java.lang.Class<?> clazz)
ThrowIllegalArgumentExceptionif the class is not an interface.- Parameters:
clazz- the class.- Throws:
java.lang.IllegalArgumentException- if the class is not an interface.
-
-