Skip to content

Instantly share code, notes, and snippets.

@dagvadorj
Created September 13, 2012 05:10
Show Gist options
  • Save dagvadorj/3712012 to your computer and use it in GitHub Desktop.
Save dagvadorj/3712012 to your computer and use it in GitHub Desktop.
Field annotation
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface Calculated {
String name();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment