public class ModelCollector extends Object implements java.util.stream.Collector<Statement,Model,Model>
LinkedHashModel will be returned.java.util.stream.Collector.Characteristics| Constructor and Description |
|---|
ModelCollector()
Constructor
|
ModelCollector(ModelFactory factory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.function.BiConsumer<Model,Statement> |
accumulator() |
Set<java.util.stream.Collector.Characteristics> |
characteristics() |
java.util.function.BinaryOperator<Model> |
combiner() |
java.util.function.Function<Model,Model> |
finisher() |
java.util.function.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofpublic ModelCollector()
public ModelCollector(ModelFactory factory)
factory - public static ModelCollector toModel()
public static ModelCollector toTreeModel()
public java.util.function.Supplier<Model> supplier()
supplier in interface java.util.stream.Collector<Statement,Model,Model>public java.util.function.BiConsumer<Model,Statement> accumulator()
accumulator in interface java.util.stream.Collector<Statement,Model,Model>public java.util.function.BinaryOperator<Model> combiner()
combiner in interface java.util.stream.Collector<Statement,Model,Model>public java.util.function.Function<Model,Model> finisher()
finisher in interface java.util.stream.Collector<Statement,Model,Model>public Set<java.util.stream.Collector.Characteristics> characteristics()
characteristics in interface java.util.stream.Collector<Statement,Model,Model>Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.