Package com.iizix

Class Messages

java.lang.Object
com.iizix.Messages

public class Messages extends Object
Class to handle localized messages.
Author:
Christopher Mindus
  • Method Details

    • getString

      public static String getString(String key)
      Gets the localized string from a resource bundle.
      Parameters:
      key - The key for the localized message.
      Returns:
      The string matching a key.
    • getString

      public static String getString(String key, Object... objects)
      Gets the localized string from a resource bundle. The string in the resource bundle should have the "printf"-style formatting for the "objects" parameter(s).
      Parameters:
      key - The key for the localized message.
      objects - The parameters.
      Returns:
      The string matching a key.