Interface ToChanges<CHS extends ChangesElement>

Type Parameters:
CHS - The class of a assertion on changes (an sub-class of ChangesElement).
All Superinterfaces:
Navigation
All Known Subinterfaces:
OriginWithChanges<CHS,CH>, OriginWithColumnsAndRowsFromChange<CHS,CH,C,R>, OriginWithValuesFromColumn<CHS,CH,C,R,V>, OriginWithValuesFromRow<CHS,CH,C,R,V>
All Known Implementing Classes:
AbstractAssertWithOriginWithChanges, AbstractAssertWithOriginWithColumnsAndRowsFromChange, AbstractAssertWithValues, AbstractOutputterWithOriginWithChanges, AbstractOutputterWithOriginWithColumnsAndRowsFromChange, AbstractOutputterWithValues, ChangeAssert, ChangeColumnAssert, ChangeColumnOutputter, ChangeColumnValueAssert, ChangeColumnValueOutputter, ChangeOutputter, ChangeRowAssert, ChangeRowOutputter, ChangeRowValueAssert, ChangeRowValueOutputter, ChangesAssert, ChangesOutputter

public interface ToChanges<CHS extends ChangesElement> extends Navigation
Defines methods to navigate to changes or to a Change.

The different methods return an assertion on changes ChangesAssert.

These methods exists when navigating (at the beginning assertThat()) from changes.

As shown in the diagram below, it is possible to call the method to navigate to changes from :

diagram with navigation to changes

It is important to keep in mind that the methods are executed from the point of view of the last instance with assertion methods on changes (ChangesAssert).
So all the lines of code below are equivalent : they point on all the changes.

 
 assertThat(changes)......;                                               // Point on all the changes
 assertThat(changes).ofAll()......;                                       // Idem
 assertThat(changes).change().returnToChanges().ofAll()......;             // Use the returnToChanges() to return to origin
                                                                          // to return on the changes and access to the next/second change of the list
 assertThat(changes).change().ofAll()......;                              // Same as precedent but returnToChanges() is implicit
 assertThat(changes).change().column().ofAll()......;
 assertThat(changes).change().rowAtEndPoint().ofAll()......;
 assertThat(changes).change().column().value().ofAll()......;
 assertThat(changes).change().rowAtEndPoint().value().ofAll()......;
 // Equivalent to the precedent but with the use of the methods to return to origin
 assertThat(changes).change().rowAtEndPoint().value().returnToRow().returnToChange().returnToChanges().ofAll()......;
 
 
Author:
Régis Pouiller