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 Summary
Modifier and TypeMethodDescriptionboolean@NonNull LockKeyGet theLockKeyassociated with this key@NonNull TypeLiteral<T>getType()Get the meta data typeinthashCode()static <T> @NonNull MetaDataKey<T>of(@NonNull String key, @NonNull TypeLiteral<T> type) Get a new named lock keytoString()
-
Method Details
-
of
Get a new named lock key- Type Parameters:
T- Type- Parameters:
key- Key nametype- type- Returns:
- MetaData key instance
-
toString
-
equals
-
hashCode
-
getLockKey
Get theLockKeyassociated with this key- Returns:
- Lock key
-
getType
Get the meta data type- Returns:
- Meta data type
-