Code example for Set

Methods: sizetoArray

0
	@Override 
	public long[] getCompanyIds() { 
		Set<Long> companyIds = _serverStatistics.getCompanyIds();
 
		return ArrayUtil.toArray( 
			companyIds.toArray(new Long[companyIds.size()]));
	} 
 
	@Override 
	public long getErrorCount() throws MonitoringException { 
		return _summaryStatistics.getErrorCount();
	} 
 
	@Override 
	public long getErrorCountByCompany(long companyId)
		throws MonitoringException { 
 
		return _summaryStatistics.getErrorCountByCompany(companyId);
	}