package io.vertx.groovy.core.file;
public class FileSystem_GroovyExtension {
  public static io.vertx.core.file.FileSystem copy(io.vertx.core.file.FileSystem j_receiver, java.lang.String from, java.lang.String to, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.copy(from,
      to,
      options != null ? new io.vertx.core.file.CopyOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.core.file.FileSystem move(io.vertx.core.file.FileSystem j_receiver, java.lang.String from, java.lang.String to, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.move(from,
      to,
      options != null ? new io.vertx.core.file.CopyOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.core.file.FileSystem open(io.vertx.core.file.FileSystem j_receiver, java.lang.String path, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.file.AsyncFile>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.open(path,
      options != null ? new io.vertx.core.file.OpenOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.file.AsyncFile>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.file.AsyncFile> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.core.file.AsyncFile openBlocking(io.vertx.core.file.FileSystem j_receiver, java.lang.String path, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.openBlocking(path,
      options != null ? new io.vertx.core.file.OpenOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
}