/** * Returns the information about specified type. * * @param type index type * @return the information about specified type */ public TypeData getTypeData(byte type) { int from = 0; for (int i = 0; i < type; ++i) from += typesCounts[i]; return new TypeData(from, typesCounts[type], states[type]); }