Class Key<T>
java.lang.Object
com.djrapitops.plan.delivery.domain.keys.Key<T>
- Type Parameters:
T- Type of the object returned by the Value identified by this Key.
- Direct Known Subclasses:
PlaceholderKey
Identifier used for storing and fetching data from DataContainers.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
Create a new key.Example usage:
Key<String> key = new Key(String.class, "identifier");(In Keys class)
public static final Key<String> IDENTIFIER = new Key(String.class, "identifier");Key<String> key = Keys.IDENTIFIER;- Parameters:
type- Class with type of the Object returned by the Value identified by this Key.keyName- Name (identifier) of the Key.
-
Key
-
-
Method Details
-
getType
-
getKeyName
-
equals
-
hashCode
-
typeCast
-