#import "../_scaffold.html" as main> <@main.scaffold title="Stable"> Get Professionally Supported Lombok
close()
methods safely with no hassle.
@main.feature>
<@main.feature title="@Getter/@Setter" href="GetterSetter">
Never write public int getFoo() {return foo;}
again.
@main.feature>
<@main.feature title="@ToString" href="ToString">
No need to start a debugger to see your fields: Just let lombok generate a toString
for
you!
@main.feature>
<@main.feature title="@EqualsAndHashCode" href="EqualsAndHashCode">
Equality made easy: Generates hashCode
and equals
implementations from the
fields of your object..
@main.feature>
<@main.feature title="@NoArgsConstructor, @RequiredArgsConstructor and @AllArgsConstructor" href="constructor">
Constructors made to order: Generates constructors that take no arguments, one argument per final /
non-nullfield, or one argument for every field.
@main.feature>
<@main.feature title="@Data" href="Data">
All together now: A shortcut for @ToString
, @EqualsAndHashCode
,
@Getter
on all fields, and @Setter
on all non-final fields, and
@RequiredArgsConstructor
!
@main.feature>
<@main.feature title="@Value" href="Value">
Immutable classes made very easy.
@main.feature>
<@main.feature title="@Builder" href="Builder">
... and Bob's your uncle: No-hassle fancy-pants APIs for object creation!
@main.feature>
<@main.feature title="@SneakyThrows" href="SneakyThrows">
To boldly throw checked exceptions where no one has thrown them before!
@main.feature>
<@main.feature title="@Synchronized" href="Synchronized">
synchronized
done right: Don't expose your locks.
@main.feature>
<@main.feature title="@Getter(lazy=true)" href="GetterLazy">
Laziness is a virtue!
@main.feature>
<@main.feature title="@Log" href="log">
Captain's Log, stardate 24435.7: "What was that line again?"
@main.feature>
<@main.feature title="experimental" href="/features/experimental/all">
Head to the lab: The new stuff we're working on.
@main.feature>
@Getter
back into the actual getter. It then removes the annotation. This is useful for all sorts of reasons; you can check out what's happening under the hood, if the unthinkable happens and you want to stop using lombok, you can easily remove all traces of it in your source, and you can use delombok to preprocess your source files for source-level tools such as javadoc and GWT. More information about how to run delombok, including instructions for build tools can be found at the delombok page.