S
- Represents the implementation type of this AXML interface.T
- Represents the child component type.public interface LazyAXML<S extends LazyAXML<S,T>,T> extends AXMLBase<S,T>
AXMLBase.Builder<S>, AXMLBase.Publisher<T>
Modifier and Type | Method and Description |
---|---|
AXMLBase.Builder<S> |
build(java.util.function.Consumer<AXMLBase.Publisher<? super T>> generator)
Build a new instance of this class by calculating child components lazily.
|
void |
forEach(AXMLBase.Publisher<? super T> action)
Applies
action on all children of this object. |
AXMLBase.Builder<S> |
forEachBuild(java.util.function.BiConsumer<T,AXMLBase.Publisher<? super T>> mapper)
Build a new instance of this class whose contents are calculated lazily.
|
AXMLBase.Builder<S> |
map(java.util.function.Function<? super T,? extends T> mapper) |
copy, getAcl, getGroupID, getUrl
AXMLBase.Builder<S> build(java.util.function.Consumer<AXMLBase.Publisher<? super T>> generator)
...
in
data.build((Publisher<T> publisher) -> ... )
to generate the enclosed
children, runs when their values are required.generator
- lazy generator of the contentsvoid forEach(AXMLBase.Publisher<? super T> action)
action
on all children of this object. The delayed generator
code runs right after this method is called, and each child is passed to
action
as it is published.action
- AXMLBase.Builder<S> forEachBuild(java.util.function.BiConsumer<T,AXMLBase.Publisher<? super T>> mapper)
build
and
forEach
. I.e.,
data.forEachBuild((T document, Publisher<T> publisher) -> ... )
is the same as
data.build((Publisher<T> publisher) -> data.forEach((T document) -> ... ))
.mapper
- AXMLBase.Builder<S> map(java.util.function.Function<? super T,? extends T> mapper)
mapper
-