public enum DefaultsMode extends Enum
Intended mode to use when generating constructors to emulate default parameter values when using the TupleConstructor annotation.
Enum constant | Description |
---|---|
AUTO |
Produce multiple constructors as required to handle any mandatory and optional arguments. |
OFF |
Produce a single constructor corresponding to the complete list of properties/fields of the class being compiled. |
ON |
Produce multiple constructors as required from all parameters through to the no-arg constructor. |
Produce multiple constructors as required to handle any mandatory and optional arguments. An argument is optional if the respective property/field has an explicit initial value. A property/field without an initial value is deemed mandatory.
Produce a single constructor corresponding to the complete list of properties/fields of the class being compiled.
Produce multiple constructors as required from all parameters through to the no-arg constructor. Defaults will be set according to any explicit initial values or the default value otherwise.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.