public final int getPrior(int snapshotId) { return getPrior(snapshotId, false); }
/** * Update the prior snapshot. */ final int updatePrior(int snapshot, int prior) { int p = getPrior(snapshot, true); if (p != Snapshot.CURRENT_STATE_ID && Snapshot.ID_INTEGER_COMPARATOR.compare(p, prior) > 0) { return p; } return prior; }
public final int getPrior(int snapshotId) { return getPrior(snapshotId, false); }
public final int getPrior(int snapshotId) { return getPrior(snapshotId, false); }
/** * Update the prior snapshot. */ final int updatePrior(int snapshot, int prior) { int p = getPrior(snapshot, true); if (p != Snapshot.CURRENT_STATE_ID && Snapshot.ID_INTEGER_COMPARATOR.compare(p, prior) > 0) { return p; } return prior; }
/** * Update the prior snapshot. */ final int updatePrior(int snapshot, int prior) { int p = getPrior(snapshot, true); if (p != Snapshot.CURRENT_STATE_ID && Snapshot.ID_INTEGER_COMPARATOR.compare(p, prior) > 0) { return p; } return prior; }