MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / clone

Method clone

htmlflow-core/src/main/java/htmlflow/HtmlView.java:130–135  ·  view source on GitHub ↗

Since HtmlView is immutable this is the preferred way to create a copy of the existing HtmlView instance with a different threadSafe state. @param visitorSupplier @param threadSafe

(
        Supplier<HtmlVisitor> visitorSupplier,
        boolean threadSafe
    )

Source from the content-addressed store, hash-verified

128 * @param threadSafe
129 */
130 protected HtmlView<M> clone(
131 Supplier<HtmlVisitor> visitorSupplier,
132 boolean threadSafe
133 ) {
134 return new HtmlView<>(visitorSupplier, template, threadSafe);
135 }
136
137 /**
138 * Returns a new instance of HtmlFlow with the same properties of this object but with indented

Callers 3

threadSafeMethod · 0.95
setIndentedMethod · 0.45
writeAsyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected