Package com.igormaznitsa.meta.annotation
Annotation Type Weight
@Documented
@Target({METHOD,TYPE,CONSTRUCTOR})
@Retention(CLASS)
@Inherited
public @interface Weight
Allows to define computational weight of an entity, in fuzzy human-subjective relative units.
Also it can mark interface methods as their desired weight. For instance it makes easier to understand should implementation process something in the same thread or in another thread.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Contains allowed units for execution weight. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionContains weight value for marked entity. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Weight.Unit valueContains weight value for marked entity.- Returns:
- weight value for marked entity.
- Since:
- 1.0
-
comment
String commentMay contain some description or comment.- Returns:
- comment or note as string
- Since:
- 1.0
- Default:
""
-