Enum Messages

java.lang.Object
java.lang.Enum<Messages>
ac.simons.neo4j.migrations.core.Messages
All Implemented Interfaces:
Serializable, Comparable<Messages>

public enum Messages extends Enum<Messages>
Accessor to messages shared between the core module and extensions.
Since:
1.2.0
Author:
Michael J. Simons
Soundtrack
Kid Rock - Devil Without A Cause
  • Enum Constant Details

    • INSTANCE

      public static final Messages INSTANCE
      The single instance.
  • Method Details

    • values

      public static Messages[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Messages valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public String get(String key)
      Retrieves the message with the given key.
      Parameters:
      key - The key in the bundle
      Returns:
      A messsage
    • format

      public String format(String key, Object... args)
      Creates a message format from the value of the given key and uses the arguments to format it.
      Parameters:
      key - The key of the message
      args - The arguments to the format
      Returns:
      A formatted message
      Since:
      1.11.1