Enum Factory
- java.lang.Object
-
- java.lang.Enum<Factory>
-
- io.github.henryssondaniel.teacup.core.assertion.Factory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleanArrayAssert
createBooleanArrayAssert()
Creates an boolean array assert.static BooleanAssert
createBooleanAssert()
Creates an boolean assert.static ByteArrayAssert
createByteArrayAssert()
Creates an byte array assert.static CharArrayAssert
createCharArrayAssert()
Creates an char array assert.static CharSequenceAssert
createCharSequenceAssert()
Creates an char sequence assert.static <T extends java.lang.Comparable<? super T>>
ComparableAssert<T>createComparableAssert()
Creates an comparable assert.static DoubleArrayAssert
createDoubleArrayAssert()
Creates an double array assert.static FloatArrayAssert
createFloatArrayAssert()
Creates an float array assert.static IntArrayAssert
createIntArrayAssert()
Creates an int array assert.static IntegerAssert
createIntegerAssert()
Creates an integer assert.static <T> IterableAssert<T>
createIterableAssert()
Creates an iterable assert.static <T> ListAssert<T>
createListAssert()
Creates an list assert.static LongArrayAssert
createLongArrayAssert()
Creates an long array assert.static LongAssert
createLongAssert()
Creates an long assert.static <T,U>
MapAssert<T,U>createMapAssert()
Creates an map assert.static ObjectArrayAssert
createObjectArrayAssert()
Creates an object array assert.static ObjectAssert
createObjectAssert()
Creates an object assert.static ShortArrayAssert
createShortArrayAssert()
Creates an short array assert.static StringAssert
createStringAssert()
Creates an string assert.static Factory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Factory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Factory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Factory c : Factory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Factory valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
createBooleanArrayAssert
public static BooleanArrayAssert createBooleanArrayAssert()
Creates an boolean array assert.- Returns:
- the boolean array assert
- Since:
- 1.0
-
createBooleanAssert
public static BooleanAssert createBooleanAssert()
Creates an boolean assert.- Returns:
- the boolean assert
- Since:
- 1.0
-
createByteArrayAssert
public static ByteArrayAssert createByteArrayAssert()
Creates an byte array assert.- Returns:
- the byte array assert
- Since:
- 1.0
-
createCharArrayAssert
public static CharArrayAssert createCharArrayAssert()
Creates an char array assert.- Returns:
- the char array assert
- Since:
- 1.0
-
createCharSequenceAssert
public static CharSequenceAssert createCharSequenceAssert()
Creates an char sequence assert.- Returns:
- the char sequence assert
- Since:
- 1.0
-
createComparableAssert
public static <T extends java.lang.Comparable<? super T>> ComparableAssert<T> createComparableAssert()
Creates an comparable assert.- Type Parameters:
T
- the comparable type- Returns:
- the comparable assert
- Since:
- 1.0
-
createDoubleArrayAssert
public static DoubleArrayAssert createDoubleArrayAssert()
Creates an double array assert.- Returns:
- the double array assert
- Since:
- 1.0
-
createFloatArrayAssert
public static FloatArrayAssert createFloatArrayAssert()
Creates an float array assert.- Returns:
- the float array assert
- Since:
- 1.0
-
createIntArrayAssert
public static IntArrayAssert createIntArrayAssert()
Creates an int array assert.- Returns:
- the int array assert
- Since:
- 1.0
-
createIntegerAssert
public static IntegerAssert createIntegerAssert()
Creates an integer assert.- Returns:
- the integer assert
- Since:
- 1.0
-
createIterableAssert
public static <T> IterableAssert<T> createIterableAssert()
Creates an iterable assert.- Type Parameters:
T
- the type- Returns:
- the iterable assert
- Since:
- 1.0
-
createListAssert
public static <T> ListAssert<T> createListAssert()
Creates an list assert.- Type Parameters:
T
- the list type- Returns:
- the list assert
- Since:
- 1.0
-
createLongArrayAssert
public static LongArrayAssert createLongArrayAssert()
Creates an long array assert.- Returns:
- the long array assert
- Since:
- 1.0
-
createLongAssert
public static LongAssert createLongAssert()
Creates an long assert.- Returns:
- the long assert
- Since:
- 1.0
-
createMapAssert
public static <T,U> MapAssert<T,U> createMapAssert()
Creates an map assert.- Type Parameters:
T
- the map key typeU
- the map value type- Returns:
- the map assert
- Since:
- 1.0
-
createObjectArrayAssert
public static ObjectArrayAssert createObjectArrayAssert()
Creates an object array assert.- Returns:
- the object array assert
- Since:
- 1.0
-
createObjectAssert
public static ObjectAssert createObjectAssert()
Creates an object assert.- Returns:
- the object assert
- Since:
- 1.0
-
createShortArrayAssert
public static ShortArrayAssert createShortArrayAssert()
Creates an short array assert.- Returns:
- the short array assert
- Since:
- 1.0
-
createStringAssert
public static StringAssert createStringAssert()
Creates an string assert.- Returns:
- the string assert
- Since:
- 1.0
-
-