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