Paul Woitaschek
09/20/2018, 2:33 PMmemphis
09/20/2018, 2:35 PMPaul Woitaschek
09/20/2018, 2:42 PMPaul Woitaschek
09/20/2018, 2:43 PMPaul Woitaschek
09/20/2018, 2:43 PM@Retention(SOURCE)
@Target({ANNOTATION_TYPE})
public @interface IntDef {
/** Defines the allowed constants for this element */
int[] value() default {};
/** Defines whether the constants can be used as a flag, or just as an enum (the default) */
boolean flag() default false;
}
Paul Woitaschek
09/20/2018, 2:44 PMPaul Woitaschek
09/20/2018, 2:44 PMTYPE_HEADER = 0L
if it's long for youmemphis
09/20/2018, 2:45 PM@Retention(SOURCE)
@Target({ANNOTATION_TYPE})
public @interface IntDef {
/** Defines the allowed constants for this element */
long[] value() default {};
/** Defines whether the constants can be used as a flag, or just as an enum (the default) */
boolean flag() default false;
}
memphis
09/20/2018, 2:49 PMv1.2.51
memphis
09/20/2018, 2:50 PMTYPE_HEADER = 0L
still get the same errormemphis
09/20/2018, 2:52 PMv1.2.70
now it’s changed to Int
Paul Woitaschek
09/20/2018, 3:01 PMmemphis
09/20/2018, 3:24 PM