public class StorageHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkID(java.lang.String id)
Checks that a storage ID is valid.
|
static void |
checkOffset(long offset)
Checks that an offset is valid.
|
static boolean |
isValidID(java.lang.String id)
Checks whether a storage ID is valid or not.
|
public static void checkID(java.lang.String id)
id - the storage ID to check.java.lang.IllegalArgumentException - if the given storage identifier is not a valid identifier.public static boolean isValidID(java.lang.String id)
id - the storage ID to check.true if the ID is valid, false otherwise.public static void checkOffset(long offset)
offset - the offset to check.java.lang.IllegalArgumentException - if the given offset is negative.