Annotation Type GetterOnly


@Retention(RUNTIME)
@Target(METHOD)
public @interface GetterOnly
Indicates that only the getter method of a property should be publically available. This is no alternative to immutable types. Actually, the purpose of this annotation is to allow a common interface for immutable and mutable types. It is only valid in combination with InterfaceOnly and cannot be applied to regular types.

Example Model:


 package mypkg.vmfmodel;
 import eu.mihosoft.vmf.core.*;
See Also:
Tutorial on Immutable Objects and ReadOnly API