Enum Class Builder.VersionPlacement

java.lang.Object
java.lang.Enum<Builder.VersionPlacement>
io.github.chrimle.classforge.Builder.VersionPlacement
All Implemented Interfaces:
Serializable, Comparable<Builder.VersionPlacement>, Constable
Enclosing interface:
Builder<T extends Builder<T>>

public static enum Builder.VersionPlacement extends Enum<Builder.VersionPlacement>
The SemVer placement in generated classes.

Default: NONE.

Since:
0.3.0
Author:
Chrimle
See Also:
  • Enum Constant Details

    • CLASS_NAME_SUFFIX

      public static final Builder.VersionPlacement CLASS_NAME_SUFFIX
      The SemVer is appended as a suffix to the generated class name.

      Example: class ExampleV1_2_3 {}.

      Since:
      0.9.0
    • NONE

      public static final Builder.VersionPlacement NONE
      Default. Version information is excluded.
      Since:
      0.3.0
    • PACKAGE_NAME_SUFFIX

      public static final Builder.VersionPlacement PACKAGE_NAME_SUFFIX
      The SemVer is appended as a suffix to the generated class package-name.

      Example: package io.github.chrimle.v1_2_3;.

      Since:
      0.9.0
  • Method Details

    • values

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

      public static Builder.VersionPlacement valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null