15
I was browsing the source code for Google IOSched App and noticed the following code snippet as part of their Content Provider implementation:
public static class Blocks implements BlocksColumns, BaseColumns.
As far as I know BaseColumns is simply an interface to two constants: _COUNT and _ID.
I have two questions:
What are the advantages/disadvantages of the implementing BaseColumns as opposed to having a private field
_IDin the class directly?What is the role of the constant
_COUNT?