Enum SpringTernaryCheck.EqualsTest
- java.lang.Object
-
- java.lang.Enum<SpringTernaryCheck.EqualsTest>
-
- io.spring.javaformat.checkstyle.check.SpringTernaryCheck.EqualsTest
-
- All Implemented Interfaces:
Serializable,Comparable<SpringTernaryCheck.EqualsTest>
- Enclosing class:
- SpringTernaryCheck
public static enum SpringTernaryCheck.EqualsTest extends Enum<SpringTernaryCheck.EqualsTest>
Type of equals operators allowed in the test condition.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYEquals checks can be used for any test.NEVEREquals tests can never be used.NEVER_FOR_NULLSEquals tests can never be used fornullchecks.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpringTernaryCheck.EqualsTestvalueOf(String name)Returns the enum constant of this type with the specified name.static SpringTernaryCheck.EqualsTest[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final SpringTernaryCheck.EqualsTest ANY
Equals checks can be used for any test.
-
NEVER
public static final SpringTernaryCheck.EqualsTest NEVER
Equals tests can never be used.
-
NEVER_FOR_NULLS
public static final SpringTernaryCheck.EqualsTest NEVER_FOR_NULLS
Equals tests can never be used fornullchecks.
-
-
Method Detail
-
values
public static SpringTernaryCheck.EqualsTest[] 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 (SpringTernaryCheck.EqualsTest c : SpringTernaryCheck.EqualsTest.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpringTernaryCheck.EqualsTest valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-