Enum Class GenerationResult

java.lang.Object
java.lang.Enum<GenerationResult>
io.github.ascopes.protobufmavenplugin.generation.GenerationResult
All Implemented Interfaces:
Serializable, Comparable<GenerationResult>, Constable

public enum GenerationResult extends Enum<GenerationResult>
Marker to describe the result of a generation run.
Since:
2.13.0
Author:
Ashley Scopes
  • Enum Constant Details

  • Field Details

    • ok

      private final boolean ok
    • description

      private final String description
  • Constructor Details

    • GenerationResult

      private GenerationResult(boolean ok, String description)
  • Method Details

    • values

      public static GenerationResult[] 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 GenerationResult 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
    • isOk

      public boolean isOk()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GenerationResult>