List of usage examples for java.util Collections EMPTY_LIST
List EMPTY_LIST
To view the source code for java.util Collections EMPTY_LIST.
Click Source Link
From source file:org.atemsource.atem.impl.hibernate.service.HibernateDao.java
public Result getEntities(final Class entityClass, final int startIndex, final int count, final Sorting sorting) { return getEntities(entityClass, startIndex, count, sorting, Collections.EMPTY_LIST); }
From source file:msi.gama.util.file.GamlFileInfo.java
public Collection<String> getExperiments() { return experiments == null ? Collections.EMPTY_LIST : experiments; }
From source file:com.cloudmine.api.rest.response.ListOfValuesResponse.java
public ListOfValuesResponse(String msg, int responseCode) { super(msg, responseCode); try {/*from www. j a va 2 s . c om*/ values = JsonUtilities.jsonToClass(msg, List.class); } catch (CloudMineException cme) { values = Collections.EMPTY_LIST; } }
From source file:com.gistlabs.mechanize.document.json.node.impl.AttributeNode.java
@SuppressWarnings("unchecked") @Override/* w w w . j a va 2 s . c om*/ public List<JsonNode> getChildren(final String... names) { return Collections.EMPTY_LIST; }
From source file:com.codecrate.shard.transfer.pcgen.PcgenDatasetImporter.java
public Collection importObjects(File dataset, ProgressMonitor progress) { if (!isDataset(dataset)) { LOG.warn(dataset + " is not a dataset."); return Collections.EMPTY_LIST; }/*from w w w. j a v a 2 s. c o m*/ File[] files = dataset.listFiles(); progress.startTask("Importing dataset " + dataset, countTotalNumberOfFilesToImport(files)); for (Iterator supportedFileExpressions = importers.keySet().iterator(); supportedFileExpressions .hasNext();) { String supportedFileExpression = (String) supportedFileExpressions.next(); ObjectImporter importer = (ObjectImporter) importers.get(supportedFileExpression); for (int x = 0; x < files.length; x++) { File file = files[x]; if (doesFileMatchExpression(supportedFileExpression, file) && !progress.isCancelled()) { importer.importObjects(file, progress); progress.completeUnitOfWork(); } } } progress.finish(); return Collections.EMPTY_LIST; }
From source file:com.streamsets.pipeline.lib.parser.delimited.TestDelimitedCharDataParser.java
private Stage.Context getContext() { return ContextInfoCreator.createSourceContext("i", false, OnRecordError.TO_ERROR, Collections.EMPTY_LIST); }
From source file:com.creactiviti.piper.core.pipeline.SimplePipeline.java
@Override public List<Accessor> getOutputs() { return getList(DSL.OUTPUTS, Accessor.class, Collections.EMPTY_LIST); }
From source file:hr.fer.zemris.vhdllab.service.result.Result.java
@SuppressWarnings("unchecked") public Result(String data) { this(data, Collections.EMPTY_LIST); }
From source file:ca.qhrtech.services.implementations.TableServiceImpl.java
@Override public List<BGLTable> getTables(Boolean completed, LocalDateTime start, LocalDateTime end, Long creatorId) { //TODO make this fileted at the db level, not in code List<BGLTable> completeTables; if (completed != null) { completeTables = tableRepository.findByCompleted(completed); } else {/*from w w w . ja va2 s.c o m*/ completeTables = tableRepository.findByPubliclyVisible(true); } List<BGLTable> tablesInRange = Collections.EMPTY_LIST; if (start != null && end != null) { tablesInRange = tableRepository.findByDateRange(start, end); } List<BGLTable> creatorTables = Collections.EMPTY_LIST; if (creatorId != null) { creatorTables = tableRepository.findByCreator(creatorId); } Set<BGLTable> combinedTables = new HashSet<>(); combinedTables.addAll(completeTables); combinedTables.addAll(tablesInRange); combinedTables.addAll(creatorTables); return new ArrayList<>(combinedTables); }
From source file:com.collabnet.svnedge.util.ProgressFileUpload.java
@Override public List parseRequest(HttpServletRequest req) throws FileUploadException { SessionProgressListener spl = null;//from w w w. j a va 2s .c om try { spl = new SessionProgressListener(req); setProgressListener(spl); return super.parseRequest(req); } catch (Exception e) { if (null != spl) { spl.clearSession(); } // trap and log the exception as it is commonly caused by the user // abandoning an upload Logger log = Logger.getLogger(getClass()); log.debug("Exception parsing multipart stream", e); log.warn("Exception parsing multipart stream, stacktrace available via DEBUG level"); } return Collections.EMPTY_LIST; }