package io.vertx.rxjava.core.file;
import rx.Observable;
import rx.Single;
import io.vertx.rx.java.RxHelper;
import io.vertx.rx.java.WriteStreamSubscriber;
import io.vertx.rx.java.SingleOnSubscribeAdapter;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
@RxGen(io.vertx.core.file.FileProps.class)
public class FileProps {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FileProps that = (FileProps) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg<FileProps> __TYPE_ARG = new TypeArg<>( obj -> new FileProps((io.vertx.core.file.FileProps) obj),
FileProps::getDelegate
);
private final io.vertx.core.file.FileProps delegate;
public FileProps(io.vertx.core.file.FileProps delegate) {
this.delegate = delegate;
}
public FileProps(Object delegate) {
this.delegate = (io.vertx.core.file.FileProps)delegate;
}
public io.vertx.core.file.FileProps getDelegate() {
return delegate;
}
public long creationTime() {
long ret = delegate.creationTime();
return ret;
}
public long lastAccessTime() {
long ret = delegate.lastAccessTime();
return ret;
}
public long lastModifiedTime() {
long ret = delegate.lastModifiedTime();
return ret;
}
public boolean isDirectory() {
boolean ret = delegate.isDirectory();
return ret;
}
public boolean isOther() {
boolean ret = delegate.isOther();
return ret;
}
public boolean isRegularFile() {
boolean ret = delegate.isRegularFile();
return ret;
}
public boolean isSymbolicLink() {
boolean ret = delegate.isSymbolicLink();
return ret;
}
public long size() {
long ret = delegate.size();
return ret;
}
public static FileProps newInstance(io.vertx.core.file.FileProps arg) {
return arg != null ? new FileProps(arg) : null;
}
}