I have a annotation type defined as
@IntDef({
MOOD.HAPPY,
MOOD.SAD,
})
public @interface MOOD {
int HAPPY = 0,
int SAD = 1,
}
Now I have a function defined as
SomeFunctionName(MOOD mood) {
doingSomething...
}
I don't know how can I pass a MOOD value to this function. Compiler always complains type couldn't convert For example, I tried
SomeFunctionName(MOOD.HAPPY)
SomeFunctionName(0)