@Immutable meta annotation.
Custom property handling:
@ImmutableBase annotation supports customization using @PropertyOptions
which allows a custom property handler to be defined. This is most typically used behind the scenes
by the @Immutable meta-annotation but you can also define your own handler. If a custom
handler is present, it will determine the code generated for the getters and setters of any property.Immutable, ImmutableOptions, MapConstructor, TupleConstructor, PropertyOptions
| Modifier and Type | Method and Description |
|---|---|
| public boolean | copyWith()
If |
| copyWith | back to summary |
|---|---|
| public boolean copyWith() If
Unknown keys in the map are ignored, and if the values would not change
the object, then the original object is returned.
If a method called copyWith that takes a single parameter already
exists in the class, then this setting is ignored, and no method is generated.
| |