Index
All Classes and Interfaces|All Packages|Serialized Form
A
- atLeastOneNotNull(String, Object...) - Static method in class com.mastfrog.util.preconditions.Checks
C
- canCastToInt(String, long) - Static method in class com.mastfrog.util.preconditions.Checks
- Checks - Class in com.mastfrog.util.preconditions
-
Code sanity checks, to simplify things like null checks.
- chuck(Class<T>, Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
- chuck(Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
-
Dirty trick to rethrow a checked exception.
- chuckOriginal(Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
-
Unwinds any causing-exception and chucks the root cause throwable.
- chuckUnless(Throwable, ReturnType, BooleanSupplier) - Static method in class com.mastfrog.util.preconditions.Exceptions
- com.mastfrog.util.preconditions - package com.mastfrog.util.preconditions
- ConfigurationError - Error in com.mastfrog.util.preconditions
-
Error which can be thrown during startup/initialization, indicating the application's configuration is so broken startup should be aborted.
- ConfigurationError() - Constructor for error com.mastfrog.util.preconditions.ConfigurationError
- ConfigurationError(String) - Constructor for error com.mastfrog.util.preconditions.ConfigurationError
- ConfigurationError(String, Throwable) - Constructor for error com.mastfrog.util.preconditions.ConfigurationError
- ConfigurationError(String, Throwable, boolean, boolean) - Constructor for error com.mastfrog.util.preconditions.ConfigurationError
- ConfigurationError(Throwable) - Constructor for error com.mastfrog.util.preconditions.ConfigurationError
E
- encodable(CharSequence, Charset) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a character sequence is encodable in the passe charset.
- Exceptions - Class in com.mastfrog.util.preconditions
-
Simple utilities for dealing with exceptions.
- Exceptions.ExceptionHandler - Interface in com.mastfrog.util.preconditions
-
Service provider which logs exceptions; the default implementation uses the JDK's logger.
- executable(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
- executable(Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file.
- exists(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Asserts that a file must exist.
- exists(Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Asserts that a file must exist.
F
- fileExists(File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file exists and is a file not a folder.
- fileExists(String, File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file exists and is a file not a folder.
- fileExists(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file exists and is a file not a folder.
- fileExists(Path) - Static method in class com.mastfrog.util.preconditions.Checks
- folderExists(File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and is a folder.
- folderExists(String, File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and is a folder.
- folderExists(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file exists and is a file not a folder.
G
- greaterThanOne(String, int) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is greater than one.
- greaterThanOne(String, long) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is greater than one.
- greaterThanOne(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is greater than one.
- greaterThanZero(String, int) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument >=0.
- greaterThanZero(String, long) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument >=1.
- greaterThanZero(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument >=0.
I
- InvalidArgumentException - Exception in com.mastfrog.util.preconditions
-
Specialization of IllegalArgumentException to differentiate stack traces from Checks.* tests (caller bug) from bugs in library code.
- isDigits(String, String) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine if a string value contains only digits.
- isInstance(String, Class<?>, Object) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine if an object is an instance of a given type
- isOfLength(String, int, Object[]) - Static method in class com.mastfrog.util.preconditions.Checks
-
Check that the given argument is of the given length, throw an InvalidArgumentException if that is not the case.
M
- mayNotContain(String, CharSequence, char...) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed string contains any of the passed characters
- mayNotStartWith(String, CharSequence, char) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed string starts with the passed character
- mustContain(String, CharSequence, char) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed value does not contain at least one of the passed character
N
- noDuplicates(String, Collection<?>) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed set contains duplicate elements.
- nonNegative(String, int) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is not a negative number
- nonNegative(String, long) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is not a negative number.
- nonNegative(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed argument is not a negative number
- noNullElements(String, T...) - Static method in class com.mastfrog.util.preconditions.Checks
-
Verify that an array does not contain null elements, throwing an exception if it does.
- nonZero(String, int) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if a parameter is equal to zero.
- nonZero(String, long) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if a parameter is equal to zero.
- nonZero(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if a parameter is equal to zero.
- notEmpty(String, Collection<?>) - Static method in class com.mastfrog.util.preconditions.Checks
- notEmpty(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed string is empty
- notEmptyOrNull(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed array argument is an array is not null has a length > 0
- notNull(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Determine that the passed parameter is not null
- notNullOrEmpty(String, T) - Static method in class com.mastfrog.util.preconditions.Checks
-
Throws an exception if the passed string is null or empty
- notSame(String, String, Object, Object) - Static method in class com.mastfrog.util.preconditions.Checks
- NullArgumentException - Exception in com.mastfrog.util.preconditions
-
Special IllegalArgumentException for null parameters.
- NullArgumentException(String) - Constructor for exception com.mastfrog.util.preconditions.NullArgumentException
P
- printStackTrace(Class<?>, String, Throwable) - Method in interface com.mastfrog.util.preconditions.Exceptions.ExceptionHandler
- printStackTrace(Class<?>, String, Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
- printStackTrace(Class<?>, Throwable) - Method in interface com.mastfrog.util.preconditions.Exceptions.ExceptionHandler
- printStackTrace(Class<?>, Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
- printStackTrace(String, Throwable) - Method in interface com.mastfrog.util.preconditions.Exceptions.ExceptionHandler
- printStackTrace(String, Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
- printStackTrace(Throwable) - Method in interface com.mastfrog.util.preconditions.Exceptions.ExceptionHandler
- printStackTrace(Throwable) - Static method in class com.mastfrog.util.preconditions.Exceptions
R
- readable(File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and the current user has read permission.
- readable(String, File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and the current user has read permission.
- readable(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and is readable.
- readable(Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file.
- readableAndNonZeroLength(String, File) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that a file exists and the current user has read permission.
- regularFile(String, Path, LinkOption...) - Static method in class com.mastfrog.util.preconditions.Checks
-
Assert that a file exists and is a regular file.
- regularFile(Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Assert that a file exists and is a regular file.
- regularFile(Path, LinkOption...) - Static method in class com.mastfrog.util.preconditions.Checks
-
Assert that a file exists and is a regular file.
W
- writable(String, Path) - Static method in class com.mastfrog.util.preconditions.Checks
- writable(Path) - Static method in class com.mastfrog.util.preconditions.Checks
-
Test that file.
All Classes and Interfaces|All Packages|Serialized Form