subChain

public TimeChain<T, V> subChain(int from, int to, T end)

Generates a sub-chain of the current chain. WARNING: Similarly to subList, the new chain shares the data structure with the current one, therefore modifications will be reflected to both.

Return

a new chain on current data, defined on the provided bounds

Parameters

from

starting segment's index of the new chain

to

ending segment's index of the new chain

end

ending time of the new chain