A B C D E F G H I N O R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AccessProtectionUtils - Class in be.sddevelopment.commons.access
-
Shortcodes for class access restrictions and common error codes
- AccessProtectionUtils.AccessProtectionConstants - Class in be.sddevelopment.commons.access
- andCode(String) - Method in class be.sddevelopment.commons.validation.FailureBuilderClause
- andReason(String) - Method in class be.sddevelopment.commons.validation.FailureBuilderClause
- andSeverity(Severity) - Method in class be.sddevelopment.commons.validation.FailureBuilderClause
- andTo(Function<T, Boolean>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule
- apply(T) - Method in class be.sddevelopment.commons.validation.FailureBuilderClause
- assertEmpty(Supplier<Optional<T>>) - Static method in class be.sddevelopment.commons.testing.TextualAssertions
- assertPrivateMember(Constructor) - Static method in class be.sddevelopment.commons.testing.ReflectionAssertionUtils
- assertPrivateMemberReflectionProtection(Constructor) - Static method in class be.sddevelopment.commons.testing.ReflectionAssertionUtils
- assertThatAlpha(Supplier<Optional<String>>) - Static method in class be.sddevelopment.commons.testing.TextualAssertions
- assertThatAlphanumeric(Supplier<Optional<String>>) - Static method in class be.sddevelopment.commons.testing.TextualAssertions
- assertThatNumber(Supplier<Optional<String>>) - Static method in class be.sddevelopment.commons.testing.TextualAssertions
B
- be.sddevelopment.commons.access - package be.sddevelopment.commons.access
- be.sddevelopment.commons.constants - package be.sddevelopment.commons.constants
- be.sddevelopment.commons.exceptions - package be.sddevelopment.commons.exceptions
-
When working with external/JDK libraries, the checked exceptions they throw sometimes prevent you from writing the code you want.
- be.sddevelopment.commons.testing - package be.sddevelopment.commons.testing
-
Description of file/class
- be.sddevelopment.commons.validation - package be.sddevelopment.commons.validation
-
Package containing utility classes to write clean code for validation purposes.
- build() - Method in class be.sddevelopment.commons.validation.Failure.FailureBuilder
- build() - Method in class be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder
- builder() - Static method in class be.sddevelopment.commons.validation.FieldValidationRule
C
- compliesTo(Function<T, Boolean>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule
D
- data() - Static method in class be.sddevelopment.commons.validation.FieldValidationRule
- defaultVal() - Static method in enum be.sddevelopment.commons.validation.Severity
-
defaultVal.
E
- elseFail(FailureBuilderClause<T>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule
- EMPTY_STRING - Static variable in class be.sddevelopment.commons.constants.Strings
- ensure(Rule<T>) - Method in class be.sddevelopment.commons.validation.Fallible
- ensure(Function<T, Boolean>) - Method in class be.sddevelopment.commons.validation.Fallible
-
ensure.
- ensure(Function<T, Boolean>, Function<T, Function<Failure.FailureBuilder, Failure.FailureBuilder>>) - Method in class be.sddevelopment.commons.validation.Fallible
-
ensure.
- equals(Object) - Method in class be.sddevelopment.commons.validation.Failure
- equals(Object) - Method in class be.sddevelopment.commons.validation.ValidationRule
- ERROR - be.sddevelopment.commons.validation.Severity
- errorCode(String) - Method in class be.sddevelopment.commons.validation.Failure.FailureBuilder
- errorTemplate(ErrorTemplate<T>) - Method in class be.sddevelopment.commons.validation.Fallible
-
errorTemplate.
- ErrorTemplate<T> - Class in be.sddevelopment.commons.validation
-
Description of file/class
- ErrorTemplate(Function<T, String>) - Constructor for class be.sddevelopment.commons.validation.ErrorTemplate
- ExceptionSuppressor - Class in be.sddevelopment.commons.exceptions
-
When using functional programming techniques in java 8+, a common issue is the inability to chain operations using method references if those called methods throw a checked exception.
- extractor(Function<R, T>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder
F
- failure() - Static method in class be.sddevelopment.commons.validation.Failure
-
failure.
- failure(T) - Method in class be.sddevelopment.commons.validation.ErrorTemplate
-
failure.
- Failure - Class in be.sddevelopment.commons.validation
-
Value Object used to return issues found when evaluating
Fallible
assertions. - Failure.FailureBuilder - Class in be.sddevelopment.commons.validation
- FailureBuilder() - Constructor for class be.sddevelopment.commons.validation.Failure.FailureBuilder
- FailureBuilderClause<T> - Class in be.sddevelopment.commons.validation
- failureCreator(FailureBuilderClause<T>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder
- failures() - Method in class be.sddevelopment.commons.validation.Fallible
-
Get the
Failure
objects resulting from applying all required rules to the data object. - Fallible<T> - Class in be.sddevelopment.commons.validation
-
Monad-style Wrapper class to be used for condition based execution flows.
- field(Function<R, T>) - Static method in class be.sddevelopment.commons.validation.FieldValidationRule
- fieldAssertion(Function<T, Boolean>) - Method in class be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder
- FieldValidationRule<R,T> - Class in be.sddevelopment.commons.validation
-
ValidationRule to be used to check validity of an object's field
- FieldValidationRule(Function<R, T>, Function<T, Boolean>, FailureBuilderClause<T>) - Constructor for class be.sddevelopment.commons.validation.FieldValidationRule
- FieldValidationRule.FieldValidationRuleBuilder<R,T> - Class in be.sddevelopment.commons.validation
G
- generateDisplayNameForClass(Class<?>) - Method in class be.sddevelopment.commons.testing.ReplaceUnderscoredCamelCasing
- generateDisplayNameForMethod(Class<?>, Method) - Method in class be.sddevelopment.commons.testing.ReplaceUnderscoredCamelCasing
- generateDisplayNameForNestedClass(Class<?>) - Method in class be.sddevelopment.commons.testing.ReplaceUnderscoredCamelCasing
- getAssertion() - Method in class be.sddevelopment.commons.validation.FieldValidationRule
- getAssertion() - Method in interface be.sddevelopment.commons.validation.Rule
- getAssertion() - Method in class be.sddevelopment.commons.validation.ValidationRule
- getCause() - Method in exception be.sddevelopment.commons.exceptions.WrappedException
- getErrorCode() - Method in class be.sddevelopment.commons.validation.Failure
- getFailureCreator() - Method in class be.sddevelopment.commons.validation.FieldValidationRule
- getFailureCreator() - Method in interface be.sddevelopment.commons.validation.Rule
- getFailureCreator() - Method in class be.sddevelopment.commons.validation.ValidationRule
- getMessage() - Method in exception be.sddevelopment.commons.exceptions.WrappedException
- getOriginalException() - Method in exception be.sddevelopment.commons.exceptions.WrappedException
- getReason() - Method in class be.sddevelopment.commons.validation.Failure
- getSeverity() - Method in class be.sddevelopment.commons.validation.Failure
- getStackTrace() - Method in exception be.sddevelopment.commons.exceptions.WrappedException
H
- hashCode() - Method in class be.sddevelopment.commons.validation.Failure
- hashCode() - Method in class be.sddevelopment.commons.validation.ValidationRule
I
- ifValid(Consumer<T>) - Method in class be.sddevelopment.commons.validation.Fallible
-
Execute a
Consumer
that takes an object of type T, when all previous {#link ensure()} conditions are met. - ignore(FallibleFunction<T, R>) - Static method in class be.sddevelopment.commons.exceptions.ExceptionSuppressor
-
Wrapper to be used when you wish to ignore an exception.
- ignoreAsOptional(FallibleFunction<T, R>) - Static method in class be.sddevelopment.commons.exceptions.ExceptionSuppressor
-
Wrapper to be used when you wish to ignore an exception, and retrieve the result as an Optional.
- INFO - be.sddevelopment.commons.validation.Severity
- isBlocking() - Method in enum be.sddevelopment.commons.validation.Severity
- isValid() - Method in class be.sddevelopment.commons.validation.Fallible
-
isValid.
N
- NON_EMPTY_STRING - Static variable in class be.sddevelopment.commons.constants.Strings
O
- of(Function<T, Function<Failure.FailureBuilder, Failure.FailureBuilder>>) - Static method in class be.sddevelopment.commons.validation.FailureBuilderClause
- of(S) - Static method in class be.sddevelopment.commons.validation.Fallible
- OPERATION_NOT_ALLOWED - Static variable in class be.sddevelopment.commons.access.AccessProtectionUtils.AccessProtectionConstants
- orElse(Consumer<T>) - Method in class be.sddevelopment.commons.validation.Fallible
R
- reason(String) - Method in class be.sddevelopment.commons.validation.Failure.FailureBuilder
- reasonCreator(UnaryOperator<String>) - Method in class be.sddevelopment.commons.validation.Failure.FailureBuilder
- ReflectionAssertionUtils - Class in be.sddevelopment.commons.testing
-
Description of file/class
- ReplaceUnderscoredCamelCasing - Class in be.sddevelopment.commons.testing
-
Description of file/class
- ReplaceUnderscoredCamelCasing() - Constructor for class be.sddevelopment.commons.testing.ReplaceUnderscoredCamelCasing
-
Constructor for ReplaceUnderscoredCamelCasing.
- Rule<T> - Interface in be.sddevelopment.commons.validation
S
- severity(Severity) - Method in class be.sddevelopment.commons.validation.Failure.FailureBuilder
- Severity - Enum in be.sddevelopment.commons.validation
-
Enumeration indicating the severity of a
Failure
. - Strings - Class in be.sddevelopment.commons.constants
-
Description of file/class
T
- template() - Static method in class be.sddevelopment.commons.validation.ErrorTemplate
-
template.
- template(Function<S, String>) - Static method in class be.sddevelopment.commons.validation.ErrorTemplate
-
template.
- TextualAssertions - Class in be.sddevelopment.commons.testing
-
Description of file/class
- toBuilder() - Method in class be.sddevelopment.commons.validation.FieldValidationRule
- toString() - Method in class be.sddevelopment.commons.validation.FieldValidationRule.FieldValidationRuleBuilder
- toString() - Method in class be.sddevelopment.commons.validation.ValidationRule
U
- uncheck(FallibleFunction<T, R>) - Static method in class be.sddevelopment.commons.exceptions.ExceptionSuppressor
-
Wrapper to use to convert an exception from a checked type to an unchecked type.
- unsupportedOperation(String) - Static method in class be.sddevelopment.commons.access.AccessProtectionUtils
- Utility - Annotation Type in be.sddevelopment.commons.access
-
Simple annotation to indicate the class is meant to be a utility class.
- UTILITY_CLASS - Static variable in class be.sddevelopment.commons.access.AccessProtectionUtils.AccessProtectionConstants
- utilityClassConstructor() - Static method in class be.sddevelopment.commons.access.AccessProtectionUtils
V
- ValidationRule<T> - Class in be.sddevelopment.commons.validation
-
Description of file/class
- ValidationRule(Function<T, Boolean>, Function<T, Function<Failure.FailureBuilder, Failure.FailureBuilder>>) - Constructor for class be.sddevelopment.commons.validation.ValidationRule
- valueOf(String) - Static method in enum be.sddevelopment.commons.validation.Severity
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum be.sddevelopment.commons.validation.Severity
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WARNING - be.sddevelopment.commons.validation.Severity
- withCode(String) - Static method in class be.sddevelopment.commons.validation.FailureBuilderClause
- withReason(String) - Static method in class be.sddevelopment.commons.validation.FailureBuilderClause
- withSeverity(Severity) - Static method in class be.sddevelopment.commons.validation.FailureBuilderClause
- WrappedException - Exception in be.sddevelopment.commons.exceptions
-
Description of file/class
- WrappedException(Exception) - Constructor for exception be.sddevelopment.commons.exceptions.WrappedException
- WrappedException(String, Exception) - Constructor for exception be.sddevelopment.commons.exceptions.WrappedException
All Classes All Packages