Package pp.battleship

Klasse Resources

java.lang.Object
pp.battleship.Resources

public class Resources extends Object
Provides access to the resource bundle of the game.
Siehe auch:
  • Felddetails

    • BUNDLE

      public static final ResourceBundle BUNDLE
      The resource bundle for the Battleship game.
  • Methodendetails

    • lookup

      public static String lookup(String key)
      Gets a string for the given key from the resource bundle in BUNDLE.
      Parameter:
      key - the key for the desired string
      Gibt zurück:
      the string for the given key
      Löst aus:
      NullPointerException - if key is null
      MissingResourceException - if no object for the given key can be found
      ClassCastException - if the object found for the given key is not a string