Package com.igormaznitsa.meta.annotation
Annotation Type Weight
-
@Documented @Target({METHOD,TYPE,CONSTRUCTOR}) @Retention(CLASS) @Inherited public @interface WeightAllows 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
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Weight.UnitvalueContains weight value for marked entity.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcommentMay contain some description or comment.
-
-
-
Element Detail
-
value
Weight.Unit value
Contains weight value for marked entity.- Returns:
- weight value for marked entity.
- Since:
- 1.0
-
-