public static Statistics createAtomicStatistics(StatisticsType type, String textId, long nId, long uId, StatisticsManager mgr) { Statistics result = null; if (((StatisticsTypeImpl) type).getDoubleStatCount() == 0 && !STRIPED_STATS_DISABLED) { result = new Atomic50StatisticsImpl(type, textId, nId, uId, mgr); } else { result = new LocalStatisticsImpl(type, textId, nId, uId, true, 0, mgr); } return result; }
int intCount = realType.getIntStatCount(); int longCount = realType.getLongStatCount(); int doubleCount = realType.getDoubleStatCount();
int intCount = realType.getIntStatCount(); int longCount = realType.getLongStatCount(); int doubleCount = realType.getDoubleStatCount();
if (realType.getDoubleStatCount() > 0) { throw new IllegalArgumentException(LocalizedStrings.Atomic50StatisticsImpl_ATOMICS_DO_NOT_SUPPORT_DOUBLE_STATS.toLocalizedString());
int intCount = realType.getIntStatCount(); int longCount = realType.getLongStatCount(); int doubleCount = realType.getDoubleStatCount();