net.java.html.lib.angular.IDeferred Maven / Gradle / Ivy
package net.java.html.lib.angular;
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.IPromise.class, "promise");
public IPromise promise() { return promise.get(); }
public void notify(java.lang.Object state) {
$Typings$.notify$140($js(this), /* AnyKeyword*/$js(state));
}
/* cannot generate notify */
public void reject(java.lang.Object reason) {
$Typings$.reject$141($js(this), /* AnyKeyword*/$js(reason));
}
public void reject() {
$Typings$.reject$142($js(this));
}
public void resolve(T value) {
$Typings$.resolve$143($js(this), /* UnionType*/$js(value));
}
public void resolve(IPromise value) {
$Typings$.resolve$143($js(this), /* UnionType*/$js(value));
}
public void resolve() {
$Typings$.resolve$144($js(this));
}
}