Class Messages


  • public class Messages
    extends java.lang.Object
    Convenience methods for retrieving locale-specific messages.
    Since:
    1.0.4
    Author:
    Matthew Hall
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PAGE_X_OF_Y
      Key for "Page {x} of {y}" used by DefaultPageNumberFormat.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getString​(java.lang.String key)
      Returns the locale-specific messages for the given key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PAGE_X_OF_Y

        public static final java.lang.String PAGE_X_OF_Y
        Key for "Page {x} of {y}" used by DefaultPageNumberFormat.
        See Also:
        Constant Field Values
    • Method Detail

      • getString

        public static java.lang.String getString​(java.lang.String key)
        Returns the locale-specific messages for the given key.
        Parameters:
        key - the key identifying the string to be retrieved.
        Returns:
        the locale-specific messages for the given key.