Returns an immutable Path representing the current state of the builder, and resets the builder to empty. This is more efficient than calling #snapshot() followed by #reset() if you don't need to preserve the builder state. @return immutable Path
()
| 182 | * @return immutable {@link Path} |
| 183 | */ |
| 184 | @NotNull |
| 185 | public Path detach() { |
| 186 | try { |
| 187 | Stats.onNativeCall(); |
| 188 | return new Path(_nDetach(_ptr, null)); |
| 189 | } finally { |
| 190 | ReferenceUtil.reachabilityFence(this); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Returns an immutable Path representing the current state of the builder, |
no test coverage detected