Class CommandLine.Assert
java.lang.Object
org.apache.logging.log4j.core.tools.picocli.CommandLine.Assert
- Enclosing class:
CommandLine
Utility class providing some defensive coding convenience methods.
-
Constructor Summary
Constructors -
Method Summary
-
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
-