net.java.html.lib.angular.ng.IDeferred Maven / Gradle / Ivy
package net.java.html.lib.angular.ng;
public class IDeferred extends net.java.html.lib.Objs {
protected IDeferred(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(IDeferred.class);
}
@Override
public IDeferred create(java.lang.Object obj) {
return obj == null ? null : new IDeferred(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static IDeferred $as(java.lang.Object obj) {
return $AS.create(obj);
}
public net.java.html.lib.Objs.Property> promise = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.angular.ng.IPromise.class, "promise");
public net.java.html.lib.angular.ng.IPromise promise() { return promise.get(); }
public void notify(java.lang.Object state) {
$Typings$.notify$182($js(this), /* AnyKeyword*/$js(state));
}
/* cannot generate notify */
public void reject(java.lang.Object reason) {
$Typings$.reject$183($js(this), /* AnyKeyword*/$js(reason));
}
public void reject() {
$Typings$.reject$184($js(this));
}
public void resolve(T value) {
$Typings$.resolve$185($js(this), /* UnionType*/$js(value));
}
public void resolve(net.java.html.lib.angular.ng.IPromise value) {
$Typings$.resolve$185($js(this), /* UnionType*/$js(value));
}
public void resolve() {
$Typings$.resolve$186($js(this));
}
}