public enum HashcodeContractViolation extends Enum<HashcodeContractViolation> implements ContractViolation
HashcodeContractViolation represents a contract violation as the name let
presume| Enum Constant and Description |
|---|
CONSISTENCY
This value represents the consistency contract violation.
|
CONSISTENCY_NULL_ARGUMENT
This value represents that the given argument is null for the consistency evaluation.
|
EQAUALITY
This value represents the eqauality contract violation.
|
EQAUALITY_NULL_ARGUMENT
This value represents that the given argument is null for the eqauality evaluation.
|
UNEQAUALITY
This value represents the uneqauality contract violation.
|
UNEQAUALITY_NULL_ARGUMENT
This value represents that the given argument is null for the uneqauality evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
static HashcodeContractViolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashcodeContractViolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashcodeContractViolation CONSISTENCY
public static final HashcodeContractViolation CONSISTENCY_NULL_ARGUMENT
public static final HashcodeContractViolation EQAUALITY
public static final HashcodeContractViolation EQAUALITY_NULL_ARGUMENT
public static final HashcodeContractViolation UNEQAUALITY
public static final HashcodeContractViolation UNEQAUALITY_NULL_ARGUMENT
public static HashcodeContractViolation[] values()
for (HashcodeContractViolation c : HashcodeContractViolation.values()) System.out.println(c);
public static HashcodeContractViolation 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.