Code example for Set

Methods: toArray

0
		@Override 
		public Void call() {
			Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
				User.class);
 
			long[] userIds = ArrayUtil.toArray(_userIds.toArray(new Long[0]));
 
			try { 
				indexer.reindex(userIds);
			} 
			catch (SearchException se) {
				if (_log.isWarnEnabled()) {
					_log.warn(se, se);
				} 
			} 
 
			return null; 
		} 
 
		private Set<Long> _userIds = new HashSet<Long>();
Connect your IDE to all the code out there  Get Codota for Java