net.sf.staccatocommons.collections.restrictions
Annotation Type Projection


@Restriction
@Documented
@Target(value=METHOD)
@Retention(value=SOURCE)
public @interface Projection

Projection restriction signals that the annotated method will not impact the operation on the receptor object, but instead return a new object that represents the result of just operation. Projection methods should return objects that share the same interface of the receptor objection. Projections may be lazy or eager- that is, perform the actual operation on demand or not. Projection methods must be non null, so there is no need to annotate them as NonNull, as it is implied.

Author:
flbulgarelli



Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads