Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created January 27, 2020 01:09
Show Gist options
  • Save BetterProgramming/129e37fc2e61194f5e1ff322c211ca76 to your computer and use it in GitHub Desktop.
Save BetterProgramming/129e37fc2e61194f5e1ff322c211ca76 to your computer and use it in GitHub Desktop.
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Values {
String name() default "";
int value();
Class allowedTypes() default String.class,
ElementType[] types();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment