public TypeMirror typeForCount ( int count ) { if ( count <= Byte . MAX_VALUE ) { return Typ . Byte ; } if ( count <= Short . MAX_VALUE ) { return Typ . Short ; } if ( count <= Integer . MAX_VALUE ) { return Typ . Int ; } return Typ . Long ; }
Return a integral class able to support count values