Package com.plotsquared.core.player
Class MetaDataKey<T>
java.lang.Object
com.plotsquared.core.player.MetaDataKey<T>
- Type Parameters:
T
- Meta data type
Key used to access meta data
-
Method Details
-
of
public static <T> @NonNull MetaDataKey<T> of(@NonNull String key, @NonNull com.google.inject.TypeLiteral<T> type)Get a new named lock key- Type Parameters:
T
- Type- Parameters:
key
- Key nametype
- type- Returns:
- MetaData key instance
-
toString
-
equals
-
hashCode
public int hashCode() -
getLockKey
Get theLockKey
associated with this key- Returns:
- Lock key
-
getType
Get the meta data type- Returns:
- Meta data type
-