T - the associate value's typepublic class StorageKey<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
StorageKey()
Protected class constructor for serialization requirements
|
|
StorageKey(String name,
Class<? super T> clazz)
Create an StorageKey instance
The clazz only used to distinguish primitive type and object type.
|
protected StorageKey()
public StorageKey(String name, Class<? super T> clazz)
The clazz only used to distinguish primitive type and object type.
For all primitive types, the clazz should equals to
Otherwise, use Object as clazz, and real class type for
name - the key's name, used to store value in storage, should be uniqueclazz - the future associate value's class type for serializationStorageKeyFactoryCopyright © 2018 seanchenxi.com. All rights reserved.