Package picocli.codegen.util
Class Assert
java.lang.Object
picocli.codegen.util.Assert
Utility class providing some defensive coding convenience methods.
-
Method Summary
-
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
public static int hashCode(boolean bool)
-