Package picocli
Class CommandLine.Assert
java.lang.Object
picocli.CommandLine.Assert
- Enclosing class:
CommandLine
Utility class providing some defensive coding convenience methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
assertTrue
(boolean condition, String message) (package private) static void
assertTrue
(boolean condition, CommandLine.IHelpSectionRenderer producer) (package private) static boolean
(package private) static int
hashCode
(boolean bool) (package private) static int
(package private) static <T> T
Throws a NullPointerException if the specified object is null.
-
Constructor Details
-
Assert
private Assert()
-
-
Method Details
-
notNull
Throws a NullPointerException if the specified object is null.- Type Parameters:
T
- type of the object to check- Parameters:
object
- the object to verifydescription
- error message- Returns:
- the verified object
-
equals
-
hashCode
-
hashCode
static int hashCode(boolean bool) -
assertTrue
-
assertTrue
-