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