Enum FormatterString.Mode

  • All Implemented Interfaces:
    Serializable, Comparable<FormatterString.Mode>
    Enclosing class:
    FormatterString

    public static enum FormatterString.Mode
    extends Enum<FormatterString.Mode>
    Mode utilisé. Pour tous les mode un "trim" à droite et à gauche est effectué. Le trim à droite est obligatoire. Concernant le trim à gauche, il est possible de s'en passer il convient alors de créer un formatter ad hoc.
    • Enum Constant Detail

      • UPPER_FIRST

        public static final FormatterString.Mode UPPER_FIRST
        Met en majuscules les premières lettres de chaque mot et en minuscules les suivantes Les séparateurs utilisés sont l'espace, "_" et "-.
    • Method Detail

      • values

        public static FormatterString.Mode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FormatterString.Mode c : FormatterString.Mode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FormatterString.Mode 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