Package org.immutables.value
Annotation Type Value
public @interface Value
This annotation provides namespace for annotations for immutable value object generation.
Use one of the nested annotation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceAnnotate attribute as auxiliary and it will be stored and will be accessible, but will be excluded from generatedequals,hashCodeandtoStringmethods.static @interfaceAnnotates method that should be invoked internally to validate invariants after instance had been created, but before returned to a client.static @interfaceAnnotates accessor that should be turned in set-able generated attribute.static @interfaceThis kind of attribute cannot be set during building, but they are eagerly computed from other attributes and stored in field.static @interfaceThis annotation could be applied to top level class which contains nested abstract value types to provide namespacing for the generated implementation classes.static @interfaceInstruct processor to generate immutable implementation of abstract value type.static @interfaceIncludes specified abstract value types into generation of processing.static @interfaceLazy attributes cannot be set, defined as method that computes value, which is invoke lazily once and only once in a thread safe manner.static @interfaceGenerate modifiable implementation of abstract value class.static @interfacestatic @interfaceCan be used to mark some abstract no-argument methods in supertypes (about to be implemented/extended by abstract value types) as regular, non-attribute methods, i.e.static @interfaceWorks withValue.Immutableclasses to mark abstract accessor method be included as "of(..)" constructor parameter.static @interfaceMarks attribute for exclusion from auto-generatedtoStringmethod.static @interfaceSpecified reversed natural ordering for the implementedSortedSet,NavigableSetorSortedMap,NavigableMap.static @interfaceNaming and structural style could be used to customize convention of the generated immutable implementations and companion classes.