java.lang.Object
java.lang.Enum<Jsr305>
org.inferred.freebuilder.processor.source.feature.Jsr305
All Implemented Interfaces:
Serializable, Comparable<Jsr305>, java.lang.constant.Constable, Feature<Jsr305>

public enum Jsr305 extends Enum<Jsr305> implements Feature<Jsr305>
Types from JSR 305, if available. Not available by default in tests.
  • Enum Constant Details

    • AVAILABLE

      public static final Jsr305 AVAILABLE
    • UNAVAILABLE

      public static final Jsr305 UNAVAILABLE
  • Field Details

  • Constructor Details

    • Jsr305

      private Jsr305(String humanReadableFormat)
  • Method Details

    • values

      public static Jsr305[] 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 Jsr305 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
    • nullable

      public static Excerpt nullable()
      Excerpt that adds a JSR-303 Nullable annotation, if available.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Jsr305>
    • hasType

      private static boolean hasType(Elements elements, QualifiedName type)