List of usage examples for java.util Collection addAll
boolean addAll(Collection<? extends E> c);
From source file:facade.collections.CollectionSafeProxy.java
private Collection<T> cloneCollection() throws InstantiationException, IllegalAccessException { Collection<T> cloned = emptyCloneCollection(); cloned.addAll(collection); return cloned; }
From source file:chibi.gemmaanalysis.AbstractGeneCoexpressionManipulatingCLI.java
public Collection<Gene> getTargetGenes() throws IOException { Collection<Gene> genes = new HashSet<Gene>(); if (targetGeneFile != null) genes.addAll(readGeneListFile(targetGeneFile, taxon)); if (targetGeneSymbols != null) { for (int i = 0; i < targetGeneSymbols.length; i++) { genes.add(findGeneByOfficialSymbol(targetGeneSymbols[i], taxon)); }/* w ww. j av a 2 s .co m*/ } return genes; }
From source file:chibi.gemmaanalysis.AbstractGeneCoexpressionManipulatingCLI.java
public Collection<Gene> getQueryGenes() throws IOException { Collection<Gene> genes = new HashSet<Gene>(); if (queryGeneFile != null) genes.addAll(readGeneListFile(queryGeneFile, taxon)); if (queryGeneSymbols != null) { for (int i = 0; i < queryGeneSymbols.length; i++) { genes.add(findGeneByOfficialSymbol(queryGeneSymbols[i], taxon)); }//from www . j a v a2s. com } return genes; }
From source file:com.assemblade.opendj.model.authentication.policy.PasswordPolicy.java
@Override public Collection<String> getAttributeNames() { Collection<String> attributeNames = super.getAttributeNames(); attributeNames.addAll(Arrays.asList("ds-cfg-password-attribute", "ds-cfg-default-password-storage-scheme", "ds-cfg-account-status-notification-handler", "ds-cfg-allow-expired-password-changes", "ds-cfg-allow-multiple-password-values", "ds-cfg-allow-pre-encoded-passwords", "ds-cfg-allow-user-password-changes", "ds-cfg-deprecated-password-storage-scheme", "ds-cfg-expire-passwords-without-warning", "ds-cfg-force-change-on-add", "ds-cfg-force-change-on-reset", "ds-cfg-grace-login-count", "ds-cfg-idle-lockout-interval", "ds-cfg-last-login-time-attribute", "ds-cfg-last-login-time-format", "ds-cfg-lockout-duration", "ds-cfg-lockout-failure-count", "ds-cfg-lockout-failure-expiration-interval", "ds-cfg-max-password-age", "ds-cfg-max-password-reset-age", "ds-cfg-min-password-age", "ds-cfg-password-change-requires-current-password", "ds-cfg-password-expiration-warning-interval", "ds-cfg-password-generator", "ds-cfg-password-validator", "ds-cfg-previous-last-login-time-format", "ds-cfg-require-change-by-time", "ds-cfg-require-secure-authentication", "ds-cfg-require-secure-password-changes", "ds-cfg-skip-validation-for-administrators", "ds-cfg-state-update-failure-policy", "ds-cfg-password-history-count", "ds-cfg-password-history-duration")); return attributeNames; }
From source file:com.liferay.portal.search.solr.server.LiveServerChecker.java
public void run() { Collection<SolrServerWrapper> solrServerWrappers = _solrServerFactory.getDeadServers(); solrServerWrappers.addAll(_solrServerFactory.getLiveServers()); for (SolrServerWrapper solrServerWrapper : solrServerWrappers) { SolrServer solrServer = solrServerWrapper.getServer(); if (solrServer == null) { continue; }//from w w w . ja v a 2s . c o m try { SolrPingResponse solrPingResponse = solrServerWrapper.ping(); if (solrPingResponse.getStatus() == 0) { _solrServerFactory.startServer(solrServerWrapper); } else { _solrServerFactory.killServer(solrServerWrapper); } } catch (Exception e) { _solrServerFactory.killServer(solrServerWrapper); } } }
From source file:com.basho.riak.client.query.BucketKeyMapReduce.java
/** * An {@link UnmodifiableIterator} view of the inputs for this Map/Reduce job. */// w ww . j a v a 2 s . c o m public Iterator<String[]> iterator() { final Collection<String[]> inputsCopy = new LinkedList<String[]>(); synchronized (inputsLock) { inputsCopy.addAll(inputs); } return new UnmodifiableIterator<String[]>(inputsCopy.iterator()); }
From source file:com.assemblade.server.model.AccessToken.java
@Override public Collection<String> getAttributeNames() { Collection<String> attributeNames = super.getAttributeNames(); attributeNames.addAll( new ArrayList<String>(Arrays.asList("asb-token", "uid", "asb-secret", "asb-baseurl", "asb-type"))); return attributeNames; }
From source file:com.datos.vfs.provider.hdfs.HdfsFileSystem.java
/** * @see AbstractFileSystem#addCapabilities(Collection) *///from ww w. jav a 2s .c o m @Override protected void addCapabilities(final Collection<Capability> capabilities) { capabilities.addAll(HdfsFileProvider.CAPABILITIES); }
From source file:info.magnolia.module.admininterface.PageHandlerManager.java
/** * register the pages from the config/* w ww . ja v a 2 s . co m*/ * @param defNode */ protected void onRegister(Content defNode) { // read the dialog configuration try { Collection pages = defNode.getChildren(ItemType.CONTENT.getSystemName()); pages.addAll(defNode.getChildren(ItemType.CONTENTNODE.getSystemName())); for (Iterator iter = pages.iterator(); iter.hasNext();) { Content page = (Content) iter.next(); String name = page.getNodeData(ND_NAME).getString(); //$NON-NLS-1$ if (StringUtils.isEmpty(name)) { name = page.getName(); } String className = page.getNodeData(ND_CLASS).getString(); //$NON-NLS-1$ try { registerPageHandler(name, Class.forName(className)); } catch (ClassNotFoundException e) { log.warn("can't find dialogpage handler class " + className, e); //$NON-NLS-1$ } } } catch (Exception e) { log.warn("can't find pages configuration", e); //$NON-NLS-1$ } }
From source file:com.google.code.ssm.test.dao.AppUserDAOImpl.java
@Override @ReadThroughMultiCache(namespace = SINGLE_NS, expiration = 0, option = @ReadThroughMultiCacheOption(generateKeysFromResult = true)) public List<AppUser> getUsersListFromCache(@ParameterValueKeyProvider(order = 1) int applicationId, @ParameterValueKeyProvider(order = 0) List<Integer> usersIds, Collection<Integer> notFoundUsersIds) { notFoundUsersIds.addAll(usersIds); return null;/*from ww w .j ava2 s.com*/ }