Package picocli
Class CommandLine.Assert
- java.lang.Object
-
- picocli.CommandLine.Assert
-
- Enclosing class:
- CommandLine
private static final class CommandLine.Assert extends java.lang.ObjectUtility class providing some defensive coding convenience methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAssert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidassertTrue(boolean condition, java.lang.String message)(package private) static voidassertTrue(boolean condition, CommandLine.IHelpSectionRenderer producer)(package private) static booleanequals(java.lang.Object obj1, java.lang.Object obj2)(package private) static inthashCode(boolean bool)(package private) static inthashCode(java.lang.Object obj)(package private) static <T> TnotNull(T object, java.lang.String description)Throws a NullPointerException if the specified object is null.
-
-
-
Method Detail
-
notNull
static <T> T notNull(T object, java.lang.String description)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
static boolean equals(java.lang.Object obj1, java.lang.Object obj2)
-
hashCode
static int hashCode(java.lang.Object obj)
-
hashCode
static int hashCode(boolean bool)
-
assertTrue
static void assertTrue(boolean condition, java.lang.String message)
-
assertTrue
static void assertTrue(boolean condition, CommandLine.IHelpSectionRenderer producer)
-
-