public enum EqualsHashcodeContractViolation extends Enum<EqualsHashcodeContractViolation> implements ContractViolation
EqualsHashcodeContractViolation represents a contract violation as the name let
presume| Enum Constant and Description |
|---|
FIRST_AND_SECOND_EQUAL
This value represents the contract violation if the first and second argument in
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) are
equal. |
FIRST_AND_THIRD_UNEQUAL
This value represents the contract violation if the first and third argument in
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) are
unequal. |
FIRST_ARG_NULL
This value represents the contract violation if the first argument in
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) is
null. |
| Modifier and Type | Method and Description |
|---|---|
static EqualsHashcodeContractViolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EqualsHashcodeContractViolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EqualsHashcodeContractViolation FIRST_AND_SECOND_EQUAL
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) are
equal.public static final EqualsHashcodeContractViolation FIRST_AND_THIRD_UNEQUAL
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) are
unequal.public static final EqualsHashcodeContractViolation FIRST_ARG_NULL
EqualsHashCodeAndToStringCheck.equalsAndHashcode(Object, Object, Object, Object) is
null.public static EqualsHashcodeContractViolation[] values()
for (EqualsHashcodeContractViolation c : EqualsHashcodeContractViolation.values()) System.out.println(c);
public static EqualsHashcodeContractViolation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.