Enum LocalizedFilterFormats

java.lang.Object
java.lang.Enum<LocalizedFilterFormats>
org.hipparchus.filtering.LocalizedFilterFormats
All Implemented Interfaces:
Serializable, Comparable<LocalizedFilterFormats>, java.lang.constant.Constable, Localizable

public enum LocalizedFilterFormats extends Enum<LocalizedFilterFormats> implements Localizable
Enumeration for localized messages formats used in exceptions messages.

The constants in this enumeration represent the available formats as localized strings. These formats are intended to be localized using simple properties files, using the constant name as the key and the property value as the message format. The source English format is provided in the constants themselves to serve both as a reminder for developers to understand the parameters needed by each format, as a basis for translators to create localized properties files, and as a default format if some translation is missing.

  • Enum Constant Details

    • PROCESS_AT_LEAST_ONE_MEASUREMENT

      public static final LocalizedFilterFormats PROCESS_AT_LEAST_ONE_MEASUREMENT
      PROCESS_AT_LEAST_ONE_MEASUREMENT.
  • Method Details

    • values

      public static LocalizedFilterFormats[] 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 LocalizedFilterFormats 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
    • getSourceString

      public String getSourceString()
      Specified by:
      getSourceString in interface Localizable
    • getLocalizedString

      public String getLocalizedString(Locale locale)
      Specified by:
      getLocalizedString in interface Localizable