From 599b6aab677439ae1bdea2cdca3233d0b763fd3f Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 17 Oct 2016 23:09:21 +0200 Subject: Updated just about all of the pages to the template-based redesign. Added ajaxified loading for feature pages. --- .../features/experimental/UtilityClass.html | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 website2/templates/features/experimental/UtilityClass.html (limited to 'website2/templates/features/experimental/UtilityClass.html') diff --git a/website2/templates/features/experimental/UtilityClass.html b/website2/templates/features/experimental/UtilityClass.html new file mode 100644 index 00000000..8145437a --- /dev/null +++ b/website2/templates/features/experimental/UtilityClass.html @@ -0,0 +1,42 @@ +<#import "../_features.html" as f> + +<@f.scaffold title="@UtilityClass" logline="Utility, metility, wetility! Utility classes for the masses."> + <@f.history> +

+ @UtilityClass was introduced as an experimental feature in lombok v1.16.2. +

+ + + <@f.experimental> + + Current status: positive - Currently we feel this feature may move out of experimental status with no or minor changes soon. + + + <@f.overview> +

+ A utility class is a class that is just a namespace for functions. No instances of it can exist, and all its members are static. For example, java.lang.Math and java.util.Collections are well known utility classes. This annotation automatically turns the annotated class into one. +

+ A utility class cannot be instantiated. By marking your class with @UtilityClass, lombok will automatically generate a private constructor that throws an exception, flags as error any explicit constructors you add, and marks the class final. If the class is an inner class, the class is also marked static. +

+ All members of a utility class are automatically marked as static. Even fields and inner classes. +

+ + + <@f.snippets name="experimental/UtilityClass" /> + + <@f.confKeys> +
+ lombok.utilityClass.flagUsage = [warning | error] (default: not set) +
+ Lombok will flag any usage of @UtilityClass as a warning or error if configured. +
+ + + <@f.smallPrint> +

+ There isn't currently any way to create non-static members, or to define your own constructor. If you want to instantiate the utility class, even only as an internal implementation detail, @UtilityClass cannot be used. +

+ + -- cgit