public final class ToStringEvaluator extends Object
ToStringEvaluator provides algorithms for evaluate the
Object.toString() method.| Constructor and Description |
|---|
ToStringEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
evaluate(Class<?> clazz)
Evaluate if the given class implements the toString method.
|
static <T> boolean |
evaluateConsistency(T object)
Evaluate consistency of method
Object.toString() for the given objects This method calls the same name method with default iterations of 7 |
static <T> boolean |
evaluateConsistency(T object,
int iterations)
Evaluate consistency of method
Object.toString() for the given objects |
public static boolean evaluate(Class<?> clazz)
clazz - the classpublic static <T> boolean evaluateConsistency(T object)
Object.toString() for the given objects T - the generic typeobject - the objectObject.toString() for the given objects is
given otherwise falsepublic static <T> boolean evaluateConsistency(T object,
int iterations)
Object.toString() for the given objects T - the generic typeobject - the objectiterations - the iterations of call of equals method.Object.toString() is given otherwise falseCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.