public final class ToStringCheck extends Object
ToStringCheck provides algorithms for evaluate the Object.toString()
method.| Constructor and Description |
|---|
ToStringCheck() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Optional<ContractViolation> |
consistency(T object)
Checks consistency of method
Object.toString() for the given objects This method calls the same name method with default iterations of 7 |
static <T> Optional<ContractViolation> |
consistency(T object,
int iterations)
Checks consistency of method
Object.toString() for the given objects |
static Optional<ContractViolation> |
evaluate(Class<?> clazz)
Checks if the given class implements the toString method.
|
static <T> Optional<ContractViolation> |
evaluateAndConsistency(T object)
Checks the all the contract conditions for the methods
Object.toString() |
public static Optional<ContractViolation> evaluate(Class<?> clazz)
public static <T> Optional<ContractViolation> consistency(T object)
Object.toString() for the given objects public static <T> Optional<ContractViolation> consistency(T object, int iterations)
Object.toString() for the given objects public static <T> Optional<ContractViolation> evaluateAndConsistency(T object)
Object.toString()T - the generic typeobject - the objectObject.toString() is given
otherwise falseCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.