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:hr.fer.zemris.vhdllab.service.workspace.ProjectMetadata.java
@SuppressWarnings("unchecked") public ProjectMetadata(Project project) { this(new Hierarchy(project, Collections.EMPTY_LIST), new HashSet<File>()); }
From source file:fr.cvlaminck.nominatim.json.AddressJsonParser.java
public AddressJsonParser() { super(Collections.EMPTY_LIST); }
From source file:com.wavemaker.tools.apidocs.tools.spring.resolver.MultiPartRequestResolver.java
@Override public List<Parameter> resolveParameter(final int index, final TypeInformation typeInformation, final Annotation[] annotations, final Operation operation) { // setting consumes operation.setConsumes(Arrays.asList(MediaType.MULTIPART_FORM_DATA_VALUE)); return Collections.EMPTY_LIST; }
From source file:DualCollection.java
/** Constructor. * It is better to use {@link #combine} instead of this method * since it checks whether any of them is null or equals. */// www . j a v a 2 s . c om public DualCollection(Collection first, Collection second) { _first = first != null ? first : Collections.EMPTY_LIST; _second = second != null ? second : Collections.EMPTY_LIST; }
From source file:de.wpsverlinden.dupfind.DupeFinder.java
public Collection<FileEntry> getDupesOf(String path) { FileEntry info = (FileEntry) fileIndex.get(path); if (info == null) { outputPrinter.println("Could not find \"" + path + "\" in index"); return Collections.EMPTY_LIST; }/* w ww .j a v a2s . co m*/ Collection<FileEntry> dupes = fileIndex.values().parallelStream() .filter((e) -> !(e.getPath().equals(info.getPath()))).filter((e) -> (e.getSize() == info.getSize())) .filter((e) -> (e.getHash().equals(info.getHash()))).collect(Collectors.toList()); return dupes; }
From source file:flens.filter.SetFilter.java
public Collection<Record> process(Record in) { in.getValues().putAll(pairs); tag(in); return Collections.EMPTY_LIST; }
From source file:msi.gama.util.file.GamlFileInfo.java
public Collection<String> getUses() { return uses == null ? Collections.EMPTY_LIST : uses; }
From source file:com.streamsets.pipeline.lib.parser.text.TestTextCharDataParser.java
@SuppressWarnings("unchecked") private Stage.Context getContext() { return ContextInfoCreator.createSourceContext("i", false, OnRecordError.TO_ERROR, Collections.EMPTY_LIST); }
From source file:com.cloudmine.api.rest.response.PushChannelResponse.java
private List<String> getNeverNullList(Object potentialList) { if (potentialList instanceof List) return (List<String>) potentialList; else//w w w.j a va2 s . com return Collections.EMPTY_LIST; }
From source file:net.sourceforge.fenixedu.domain.PublicCandidacyHashCode.java
@Atomic public void sendEmail(final String fromSubject, final String body) { SystemSender systemSender = getRootDomainObject().getSystemSender(); new Message(systemSender, systemSender.getConcreteReplyTos(), Collections.EMPTY_LIST, fromSubject, body, getEmail());/*from w w w. java 2 s . com*/ }