Package cloud.commandframework.captions
Class Caption
- java.lang.Object
-
- cloud.commandframework.captions.Caption
-
public final class Caption extends java.lang.ObjectThis is a reference to a caption and does not contain any message itself
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NonNull java.lang.StringgetKey()Get the caption keyinthashCode()static @NonNull Captionof(@NonNull java.lang.String key)Create a new caption with a given keyjava.lang.StringtoString()
-
-
-
Method Detail
-
of
public static @NonNull Caption of(@NonNull java.lang.String key)
Create a new caption with a given key- Parameters:
key- Caption key- Returns:
- Created caption
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getKey
public @NonNull java.lang.String getKey()
Get the caption key- Returns:
- Caption key
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-