nl.jqno.equalsverifier
Class EqualsVerifier.RelaxedEqualsVerifierHelper<T>

java.lang.Object
  extended by nl.jqno.equalsverifier.EqualsVerifier.RelaxedEqualsVerifierHelper<T>
Enclosing class:
EqualsVerifier<T>

public static class EqualsVerifier.RelaxedEqualsVerifierHelper<T>
extends Object

Helper class for EqualsVerifier.forRelaxedEqualExamples(Object, Object, Object...). Its purpose is to make sure, at compile time, that a list of unequal examples is given, as well as the list of equal examples that are supplied to the aforementioned method.

Author:
Jan Ouwens

Method Summary
 EqualsVerifier<T> andUnequalExample(T example)
          Asks for an unequal instance of T and subsequently returns a fully constructed instance of EqualsVerifier.
 EqualsVerifier<T> andUnequalExamples(T first, T... more)
          Asks for a list of unequal instances of T and subsequently returns a fully constructed instance of EqualsVerifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

andUnequalExample

public EqualsVerifier<T> andUnequalExample(T example)
Asks for an unequal instance of T and subsequently returns a fully constructed instance of EqualsVerifier.

Parameters:
example - An instance of T that is unequal to the previously supplied equal examples.
Returns:
An instance of EqualsVerifier.

andUnequalExamples

public EqualsVerifier<T> andUnequalExamples(T first,
                                            T... more)
Asks for a list of unequal instances of T and subsequently returns a fully constructed instance of EqualsVerifier.

Parameters:
first - An instance of T that is unequal to the previously supplied equal examples.
more - More instances of T, all of which are unequal to one another, to first, and to the previously supplied equal examples. May also contain instances of subclasses of T.
Returns:
An instance of EqualsVerifier.


Copyright © 2015. All Rights Reserved.