aboutsummaryrefslogtreecommitdiff
path: root/website2/templates/features/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'website2/templates/features/index.html')
-rw-r--r--website2/templates/features/index.html87
1 files changed, 87 insertions, 0 deletions
diff --git a/website2/templates/features/index.html b/website2/templates/features/index.html
new file mode 100644
index 00000000..1dca7076
--- /dev/null
+++ b/website2/templates/features/index.html
@@ -0,0 +1,87 @@
+<#import "../_scaffold.html" as main>
+
+<@main.scaffold>
+ <div class="page-header top5">
+ <div class="row text-center">
+ <h1>Lombok features.</h1>
+ </div>
+ <div class="row">
+ <@main.feature title="val" code="val">
+ Finally! Hassle-free final local variables.
+ </@main.feature>
+
+ <@main.feature title="@NonNull" code="non-null">
+ or: How I learned to stop worrying and love the NullPointerException.
+ </@main.feature>
+
+ <@main.feature title="@Cleanup" code="cleanup">
+ Automatic resource management: Call your <code>close()</code> methods safely with no hassle.
+ </@main.feature>
+
+ <@main.feature title="@Getter/@Setter" code="getter-setter">
+ Never write <code>public int getFoo() {return foo;}</code> again.
+ </@main.feature>
+
+ <@main.feature title="@ToString" code="to-string">
+ No need to start a debugger to see your fields: Just let lombok generate a <code>toString</code> for
+ you!
+ </@main.feature>
+
+ <@main.feature title="@EqualsAndHashCode" code="equals-and-hashcode">
+ Equality made easy: Generates <code>hashCode</code> and <code>equals</code> implementations from the
+ fields of your object..
+ </@main.feature>
+
+ <@main.feature title="@NoArgsConstructor, @RequiredArgsConstructor and @AllArgsConstructor" code="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" code="data">
+ All together now: A shortcut for <code>@ToString</code>, <code>@EqualsAndHashCode</code>,
+ <code>@Getter</code> on all fields, and <code>@Setter</code> on all non-final fields, and
+ <code>@RequiredArgsConstructor</code>!
+ </@main.feature>
+
+ <@main.feature title="@Value" code="value">
+ Immutable classes made very easy.
+ </@main.feature>
+
+ <@main.feature title="@Builder" code="builder">
+ ... and Bob's your uncle: No-hassle fancy-pants APIs for object creation!
+ </@main.feature>
+
+ <@main.feature title="@SneakyThrows" code="sneaky-throws">
+ To boldly throw checked exceptions where no one has thrown them before!
+ </@main.feature>
+
+ <@main.feature title="@Synchronized" code="sync">
+ <code>synchronized</code> done right: Don't expose your locks.
+ </@main.feature>
+
+ <@main.feature title="@Getter(lazy=true)" code="getter-lazy">
+ Laziness is a virtue!
+ </@main.feature>
+
+ <@main.feature title="@Log" code="log">
+ Captain's Log, stardate 24435.7: &quot;What was that line again?&quot;
+ </@main.feature>
+ </div>
+
+ <div class="row">
+ <h1>Configuration system</h1>
+
+ <div class="text-center">
+ Lombok, made to order: <a href="/feature/configuration">Configure lombok features</a> in one place for your entire project or even your workspace.
+ </div>
+ </div>
+
+ <div class="row">
+ <h1 class="text-center">Running delombok</h1>
+
+ <div>
+ Delombok copies your source files to another directory, replacing all lombok annotations with their desugared form. So, it'll turn <code>@Getter</code> 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 <a href="/feature/api/delombok">delombok page</a>.
+ </div>
+ </div>
+ </div>
+</@main.scaffold>