Update introduction validator to support auto-delete timers.

This commit is contained in:
akwizgran
2020-11-19 15:35:13 +00:00
committed by Torsten Grote
parent 113120b3ab
commit 3798ca1e17
12 changed files with 333 additions and 52 deletions

View File

@@ -64,4 +64,9 @@ public class ValidationUtils {
if (dictionary != null && dictionary.size() != size)
throw new FormatException();
}
public static void checkRange(@Nullable Long l, long min, long max)
throws FormatException {
if (l != null && (l < min || l > max)) throw new FormatException();
}
}