@Retention(value=RUNTIME)
@Target(value={ANNOTATION_TYPE,TYPE})
public @interface Closed
A convenience annotation that composes the following behaviors:
ImmutableClosedConstructorFixedCompilation
You can disable the Immutable behavior via the disableImmutable() field
It is recommended to couple this Annotation with Builder. It is not included with this annotation because you
lose the benefit of IntelliJ auto completion which isn't worth it.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
disableImmutable |
Immutable |
immutable |
public abstract Immutable immutable