Package org.eclipse.rdf4j.model.util
Class ModelCollector
- java.lang.Object
-
- org.eclipse.rdf4j.model.util.ModelCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Constructor Description ModelCollector()
ConstructorModelCollector(ModelFactory factory)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<Model,Statement>
accumulator()
Set<Collector.Characteristics>
characteristics()
BinaryOperator<Model>
combiner()
Function<Model,Model>
finisher()
Supplier<Model>
supplier()
static ModelCollector
toModel()
Convenience method to obtain a ModelCollector.static ModelCollector
toTreeModel()
Convenience method to obtain a ModelCollector, which will return a TreeModel.
-
-
-
Constructor Detail
-
ModelCollector
public ModelCollector()
Constructor
-
ModelCollector
public ModelCollector(ModelFactory factory)
Constructor- Parameters:
factory
-
-
-
Method Detail
-
toModel
public static ModelCollector toModel()
Convenience method to obtain a ModelCollector.- Returns:
- a ModelCollector
-
toTreeModel
public static ModelCollector toTreeModel()
Convenience method to obtain a ModelCollector, which will return a TreeModel.- Returns:
- a ModelCollector
-
accumulator
public BiConsumer<Model,Statement> accumulator()
- Specified by:
accumulator
in interfaceCollector<Statement,Model,Model>
-
combiner
public BinaryOperator<Model> combiner()
-
characteristics
public Set<Collector.Characteristics> characteristics()
- Specified by:
characteristics
in interfaceCollector<Statement,Model,Model>
-
-