No that is not possible. There is a feature request to create a @SomeArgsConstructor
where you can specify a list of involved fields.
Full disclosure: I am one of the core Project Lombok developers.
More Related Contents:
- how to define a constructor outside class in java?
- Why are my fields initialized to null or to the default value of zero when I’ve declared and initialized them in my class’ constructor?
- Best way to handle multiple constructors in Java
- Why use setters in java instead of constructors? [duplicate]
- Calling a non-static method with constructors using objects from a different class [duplicate]
- Java Constructor Inheritance
- Is it unnecessary to put super() in constructor?
- What’s the syntax to import a class in a default package in Java? [duplicate]
- Can constructors throw exceptions in Java?
- Calling method from constructor
- Can a constructor in Java be private?
- How to initialize HashSet values by construction?
- Lombok is not generating getter and setter
- Deep copy of an object array
- Curly braces in “new” expression? (e.g. “new MyClass() { … }”)
- Java modifiers syntax and format
- Convert binary string to byte array
- Why can’t Java constructors be synchronized?
- Java: newInstance of class that has no default constructor
- using a variable in constructor in a method outside of constructor
- Null check in an enhanced for loop
- Why is declaration of the variable required inside a for-each loop in java
- What does the ‘new’ keyword actually do in Java, and should I avoid creating new objects?
- Why can’t enum constructors be protected or public in Java?
- Default access modifier for a Java constructor
- Omitting one Setter/Getter in Lombok
- How to override Lombok Setter methods
- How can I access a private constructor of a class?
- Is it possible in java to create ‘blank’ instance of class without no-arg constructor using reflection?
- What do < and > mean such as implements Comparable?