Class Caption


  • public final class Caption
    extends java.lang.Object
    This is a reference to a caption and does not contain any message itself
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NonNull java.lang.String getKey()
      Get the caption key
      int hashCode()  
      static @NonNull Caption of​(@NonNull java.lang.String key)
      Create a new caption with a given key
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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:
        equals in class java.lang.Object
      • getKey

        public @NonNull java.lang.String getKey()
        Get the caption key
        Returns:
        Caption key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object