Skip to content

Instantly share code, notes, and snippets.

@codejunk1e
Created June 23, 2020 00:30
Show Gist options
  • Save codejunk1e/12efd3111318f17bffcaa1bd9498519c to your computer and use it in GitHub Desktop.
Save codejunk1e/12efd3111318f17bffcaa1bd9498519c to your computer and use it in GitHub Desktop.
IntDef file template for Android
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class ${INTERFACE_NAME}s {
public static final int placeholder = 1;
@IntDef({placeholder})
@Retention(RetentionPolicy.SOURCE)
public @interface ${INTERFACE_NAME} {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment