Comments (4)
π€ reinierz Β π Jul 26, 2009 at 08:13 UTC
Parameters for equals/hashCode and toString generation can then also be created, on newly
created annotations for generating just those method(s).
For equals/hashCode:
'call super.hashCode / super.equals first' (incl check on whether you extend something other
than java.lang.Object if you enable this), a way to exclude fields, or include transient fields.
For toString: exclude fields option, as well as a 'long form' option that prefixes each printed field
with that field's name.
Right now classes which really don't warrant a @ Data will nevertheless be tagged with it just
because people want to avoid having to roll their own equals/hashCode.
from lombok.
π€ reinierz Β π Jul 27, 2009 at 07:22 UTC
@ ToString has been split off in commit d906899
from lombok.
π€ reinierz Β π Jul 27, 2009 at 09:05 UTC
And @ EqualsAndHashCode has been split off in commit 8fbcf8f
which finishes this issue. It will have been added in v0.8.2.
from lombok.
End of migration
from lombok.
Related Issues (20)
- [BUG] lombok.eclipse.handlers.HandleBuilder failed - Java 22, Eclipse 2024-03 HOT 7
- [FEATURE] Document that Lombok needs to be a `requires static` dependency in module-info HOT 2
- [BUG] Jackson annotation @JsonProperty not working with @Jacksonized - 2
- [BUG] I found this phenomenon in an unintentional debugging and do not understand it HOT 2
- [FEATURE] How to start project testing locallyοΌSeeking source code tutorial HOT 4
- [BUG] StackOverflowError in Eclipse in Synchronize view HOT 1
- [BUG] SuperBuilder can cause non-reproducible builds HOT 4
- [BUG] javadoc not being generated. Gradle
- [QUESTION] Problem solved, please ignore this thread.
- [BUG] `@NonNull` on array elements doesn't work HOT 4
- [BUG] ArrayIndexOutOfBoundsException using Eclipse HOT 7
- Migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting error: cannot find symbol HOT 1
- Migrating from SpringBoot 2.7.1 to 3.2.3 but Lombok @SuperBuilder is not working getting error: cannot find symbol HOT 1
- [FEATURE] Add configuration key `lombok.copyableAnnotations.onMethod` and/or add swagger's `@Hidden` to the list of `COPY_TO_SETTER_ANNOTATIONS`
- [BUG] java.lang.NoSuchMethodError: 'void org.eclipse.jdt.internal.compiler.ast.CaseStatement.<init>(org.eclipse.jdt.internal.compiler.ast.Expression, int, int)' HOT 1
- [FEATURE] Default Value Support in Lombok HOT 2
- [BUG] Using @StandardException and @AllArgConstructor on a class with two non-primitive fields creates ambiguous constructor HOT 2
- [BUG] @SuperBuilder/@Builder generates names(Collection<? extends String > names)-method, but String is final HOT 3
- [FEATURE] finish the job and make generating `@lombok.Generated` default behaviour HOT 1
- Jakarta Generated support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok.