/** * Checks if the string is all digits or one of the SentinelCheckpoint values. * * @param string * @return true if and only if the string is all digits or one of the SentinelCheckpoint values */ private static boolean isDigitsOrSentinelValue(String string) { return SequenceNumberValidator.isDigits(string) || isSentinelValue(string); }