@Target(value=FIELD) @Retention(value=RUNTIME) @Inherited public @interface Optional
Optional
annotation to specify optional fields.
If one or more fields are declared optional, the system generates an
additional pair of constructor and fire
method that can be called
without these fields.
The omitted fields are not initialized and will contain
their default value (i.e. objects will be initialized to null
).
You can use this annotation with:
See the above annotations for specific behaviors with optional fields.
Copyright © 2010–2014 Arcbees. All rights reserved.