tryPeekPrevious

public E tryPeekPrevious(E other)

Fail-safe method for fetching data from previous element (if exists).

Return

the previous value if present, otherwise the other one.

Parameters

other

default value in case of failure