Validates a timestamp. @throws IllegalArgumentException if the timestamp is zero or negative.
(final long timestamp)
| 383 | * @throws IllegalArgumentException if the timestamp is zero or negative. |
| 384 | */ |
| 385 | static void checkTimestamp(final long timestamp) { |
| 386 | if (timestamp < 0) { |
| 387 | throw new IllegalArgumentException("Negative timestamp: " + timestamp); |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | /** |
| 392 | * Validates a value (the contents of an HBase cell). |