public class ImportConcepts extends Object
| Constructor and Description |
|---|
ImportConcepts(ImportFacet facet) |
ImportConcepts(List<ImportConcept> concepts,
ImportFacet importFacet)
Constructor for an already existing list of concepts.
|
ImportConcepts(List<ImportConcept> concepts,
ImportFacet importFacet,
ImportOptions importOptions)
Constructor for an already existing list of concepts.
|
ImportConcepts(java.util.stream.Stream<ImportConcept> termList,
ImportFacet facet) |
ImportConcepts(java.util.stream.Stream<ImportConcept> termList,
ImportFacet importFacet,
ImportOptions importOptions) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<ImportConcept> |
getConcepts()
Returns the concepts as a stream.
|
List<ImportConcept> |
getConceptsAsList()
If index-based access to the concepts is required, this method can be called.
|
ImportFacet |
getFacet() |
ImportOptions |
getImportOptions() |
void |
setConcepts(java.util.stream.Stream<ImportConcept> concepts) |
void |
setFacet(ImportFacet facet) |
void |
setImportOptions(ImportOptions importOptions) |
public ImportConcepts(ImportFacet facet)
public ImportConcepts(java.util.stream.Stream<ImportConcept> termList, ImportFacet facet)
public ImportConcepts(java.util.stream.Stream<ImportConcept> termList, ImportFacet importFacet, ImportOptions importOptions)
public ImportConcepts(List<ImportConcept> concepts, ImportFacet importFacet)
getConcepts() and getConceptsAsList();concepts - The list of concepts.importFacet - The facet to add the concepts to.public ImportConcepts(List<ImportConcept> concepts, ImportFacet importFacet, ImportOptions importOptions)
getConcepts() and getConceptsAsList();concepts - The list of concepts.importFacet - The facet to add the concepts to.importOptions - Options regarding the database import of the given concepts.public java.util.stream.Stream<ImportConcept> getConcepts()
getConceptsAsList() was called at least once.public List<ImportConcept> getConceptsAsList()
If index-based access to the concepts is required, this method can be called.
If one of the constructors was called taking a stream of ImportConcepts, this
causes the concept stream to be collected into a list. Starting from the
first call of this method, only the list representation will then be used.
Even getConcepts() will return a new stream created from the list.
Thus, this method comes with a - possibly minor - performance penalty.
In case that one of the constructors taking a list of concepts was used, this is the method to go.
public ImportFacet getFacet()
public ImportOptions getImportOptions()
public void setConcepts(java.util.stream.Stream<ImportConcept> concepts)
public void setFacet(ImportFacet facet)
public void setImportOptions(ImportOptions importOptions)
Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.