Enum Class Valid8JCliches
- All Implemented Interfaces:
Serializable
,Comparable<Valid8JCliches>
,Constable
A container class for utility classes for valid8j usages.
This class may hold utility methods and various inner classes. They should be fed back to the valid8j community and once those are implemented as its out-of-box features, usages of them should be replaced with the new features in valid8j.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A utility class to make an existingFunction
s andPredicate
s "printable".static enum
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
assumeStatement
(com.github.valid8j.pcond.fluent.Statement<T> statement) This is a method to workaround issue: valid8j:issue-16 Once it is fixed, usages of this method should be replaced withExpectations.assumeStatement
.static Valid8JCliches
Returns the enum constant of this class with the specified name.static Valid8JCliches[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
assumeStatement
public static <T> void assumeStatement(com.github.valid8j.pcond.fluent.Statement<T> statement) This is a method to workaround issue: valid8j:issue-16 Once it is fixed, usages of this method should be replaced withExpectations.assumeStatement
.- Type Parameters:
T
- Type of the value- Parameters:
statement
- A statement
-
mapToKeyList
-