What is the difference between @IntDef and Enum? I can create int fields in Enum, so it will be also an instance with primitive data constants. Why Google recommends using @IntDef, can somebody explain? Does anyone of this two store its data in some specific way?
Thanks in advance.