Event Dispatcher
v0.1.6-beta.1
Project that offers a small library that allows to subscribe and fire events.
|
This interface defines tests to verify that the objects implements correctly the.
method, which implements an equivalence relation on non-null object references.
Note that it is generally necessary to override the
method whenever the
method is overridden, so as to maintain the general contract for the
method, which states that equal objects must have equal hash codes.
<T> | the type of objects that this object may be compared to |
Definition at line 28 of file EqualsContract.java.
Public Member Functions | |
T | createNotEqualValue () |
default void | equalValueItself () |
default void | notEqualNullValue () |
default void | notEqualDifferentValue () |
![]() | |
T | createValue () |
T createNotEqualValue | ( | ) |
Creates and returns a non equal value to use in the equality tests.
This method should return a value not equal to the returned by Testable#createValue for its correct execution.
Implemented in EqualsTest.PersonObjectEqualsTest, and EqualsTest.ObservedValueEqualsTest.
default void equalValueItself | ( | ) |
Compares the created value to itself to test that the equality holds.
Definition at line 44 of file EqualsContract.java.
default void notEqualNullValue | ( | ) |
Compares the created value to a.
to test that the equality does not hold.
Definition at line 55 of file EqualsContract.java.
default void notEqualDifferentValue | ( | ) |
Compares the created value to a different value to test that the equality does not hold.
Definition at line 66 of file EqualsContract.java.