- Type Parameters:
T- object type
public interface ReplacementsHandler<T>
- See Also:
Handle two synchronized sequences.
This method is called by a
ReplacementsFinderinstance when it has synchronized two sub-sequences of object arrays being compared, and at least one of the sequences is non-empty. Since the sequences are synchronized, the objects before the two sub-sequences are equals (if they exist). This property also holds for the objects after the two sub-sequences.
The replacement is defined as replacing the
fromsub-sequence into the
skipped- number of tokens skipped since the last call (i.e. number of tokens that were in both sequences), this number should be strictly positive except on the very first call where it can be zero (if the first object of the two sequences are different)
from- sub-sequence of objects coming from the first sequence
to- sub-sequence of objects coming from the second sequence