private boolean containPrevious(TermIndex previous) { if (LOG.isTraceEnabled()) { LOG.trace("{}: prev:{}, latestSnapshot:{}, latestInstalledSnapshot:{}", getId(), previous, state.getLatestSnapshot(), state.getLatestInstalledSnapshot()); } return state.getLog().contains(previous) || (state.getLatestSnapshot() != null && state.getLatestSnapshot().getTermIndex().equals(previous)) || (state.getLatestInstalledSnapshot() != null) && state.getLatestInstalledSnapshot().equals(previous); }
private boolean containPrevious(TermIndex previous) { if (LOG.isTraceEnabled()) { LOG.trace("{}: prev:{}, latestSnapshot:{}, latestInstalledSnapshot:{}", getId(), previous, state.getLatestSnapshot(), state.getLatestInstalledSnapshot()); } return state.getLog().contains(previous) || (state.getLatestSnapshot() != null && state.getLatestSnapshot().getTermIndex().equals(previous)) || (state.getLatestInstalledSnapshot() != null) && state.getLatestInstalledSnapshot().equals(previous); }