Package com._1c.g5.v8.dt.compare.core
Class LazyNodeProvider<T extends ComparisonNode>
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.LazyNodeProvider<T>
-
public class LazyNodeProvider<T extends ComparisonNode> extends Object
Provides a comparison node while creating it by the first request.- the type of provided comparison node.
-
-
Constructor Summary
Constructors Constructor Description LazyNodeProvider(Supplier<T> nodeFactory)
Creates a provider with the specified factory for node creation.LazyNodeProvider(T node)
Creates a provider for the node that already exists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getNode()
Creates if need and returns the node.boolean
isNodeCreated()
checks whether the node has been created by this lazy provider.
-
-
-
Constructor Detail
-
LazyNodeProvider
public LazyNodeProvider(T node)
Creates a provider for the node that already exists.- Parameters:
node
- the node to create the provider for, can benull
-
-
Method Detail
-
getNode
public T getNode()
Creates if need and returns the node.- Returns:
- the stored node, never
null
-
isNodeCreated
public boolean isNodeCreated()
checks whether the node has been created by this lazy provider.- Returns:
-
-