Enum BuilderFactory.TypeInference

java.lang.Object
java.lang.Enum<BuilderFactory.TypeInference>
org.inferred.freebuilder.processor.BuilderFactory.TypeInference
All Implemented Interfaces:
Serializable, Comparable<BuilderFactory.TypeInference>, java.lang.constant.Constable
Enclosing class:
BuilderFactory

public static enum BuilderFactory.TypeInference extends Enum<BuilderFactory.TypeInference>
  • Enum Constant Details

    • EXPLICIT_TYPES

      public static final BuilderFactory.TypeInference EXPLICIT_TYPES
      Types must be specified explicitly in the source, even when the diamond operator is available.

      Use this when the expression result is not immediately assigned to a variable or returned from a method.

    • INFERRED_TYPES

      public static final BuilderFactory.TypeInference INFERRED_TYPES
      Types should be inferred where possible, as specifying them explicitly would be redundant.

      Use this when the expression result is immediately assigned to a variable or returned from a method. Do not use this when the expression result is passed directly into a method, as Java 6+7 cannot do type inference in this situation.

  • Constructor Details

    • TypeInference

      private TypeInference()
  • Method Details

    • values

      public static BuilderFactory.TypeInference[] 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 BuilderFactory.TypeInference 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