| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| pack-priv static void | checkArgument(boolean
to condition to be tested condition, String the exception message to use if the check fails. errorMessage)Ensures the truth of an expression involving one or more parameters to the calling method. |
| pack-priv static void | checkArgument(boolean
to condition to be tested condition, String the format string to be passed to errorMessageTemplate, Object String#format(String,
Object.the format argument to be passed to arg)String#format(String, Object.Ensures the truth of an expression involving one or more parameters to the calling method. |
| pack-priv static <T> T | Returns: the non-null reference that was validatedan object reference reference, String the exception message to use if the check fails. errorMessage)Ensures that an object reference passed as a parameter to the calling method is not null. |
| pack-priv static void | checkPositionIndexes(int
a user-supplied index identifying a starting position in an array, list or string start, int a user-supplied index identifying a ending position in an array, list or string end, int the size of that array, list or string size)Ensures that |
| Preconditions | back to summary |
|---|---|
| private Preconditions() | |
| badPositionIndex | back to summary |
|---|---|
| private static String badPositionIndex(int index, int size, String desc) | |
| badPositionIndexes | back to summary |
|---|---|
| private static String badPositionIndexes(int start, int end, int size) | |
| checkArgument | back to summary |
|---|---|
| pack-priv static void checkArgument(boolean condition, String errorMessage) Ensures the truth of an expression involving one or more parameters to the calling method.
| |
| checkArgument | back to summary |
|---|---|
| pack-priv static void checkArgument(boolean condition, String errorMessageTemplate, Object arg) Ensures the truth of an expression involving one or more parameters to the calling method.
| |
| checkNotNull | back to summary |
|---|---|
| pack-priv static <T> T checkNotNull(T reference, String errorMessage) Ensures that an object reference passed as a parameter to the calling method is not null.
| |
| checkPositionIndexes | back to summary |
|---|---|
| pack-priv static void checkPositionIndexes(int start, int end, int size) Ensures that
| |