Enum NamingStrategy.ExampleName

    • Enum Constant Detail

      • PICKLE

        public static final NamingStrategy.ExampleName PICKLE
        Use the name of the pickle associated with the example. For example Eating 6 cucumbers.
      • NUMBER_AND_PICKLE_IF_PARAMETERIZED

        public static final NamingStrategy.ExampleName NUMBER_AND_PICKLE_IF_PARAMETERIZED
        Number examples, and if the pickle name is parameterized include it too. For example #1.2: Eating 6 cucumbers.
    • Method Detail

      • values

        public static NamingStrategy.ExampleName[] 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 (NamingStrategy.ExampleName c : NamingStrategy.ExampleName.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NamingStrategy.ExampleName 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