All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.angular.IQService Maven / Gradle / Ivy

package net.java.html.lib.angular;
public class IQService extends net.java.html.lib.Objs {
  protected IQService(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(IQService.class);
    }
    @Override
    public IQService create(java.lang.Object obj) {
      return obj == null ? null : new IQService(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static IQService $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  // ConstructSignature: {"children":[],"kind":"ConstructSignature","comment":null,"name":null,"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IPromise","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"text":null,"declarationList":null,"parameters":[{"name":{"kind":"Identifier","text":"resolver","right":[]},"type":{"kind":"FunctionType","text":null,"typeName":null,"type":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"types":[],"typeArguments":[],"parameters":[{"name":{"kind":"Identifier","text":"resolve","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"typeParameters":[{"children":[],"kind":"TypeParameter","comment":null,"name":{"kind":"Identifier","text":"T","right":[]},"type":null,"text":null,"declarationList":null,"parameters":[],"typeParameters":[],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}
  // ConstructSignature: {"children":[],"kind":"ConstructSignature","comment":null,"name":null,"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IPromise","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"text":null,"declarationList":null,"parameters":[{"name":{"kind":"Identifier","text":"resolver","right":[]},"type":{"kind":"FunctionType","text":null,"typeName":null,"type":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"types":[],"typeArguments":[],"parameters":[{"name":{"kind":"Identifier","text":"resolve","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null},{"name":{"kind":"Identifier","text":"reject","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"typeParameters":[{"children":[],"kind":"TypeParameter","comment":null,"name":{"kind":"Identifier","text":"T","right":[]},"type":null,"text":null,"declarationList":null,"parameters":[],"typeParameters":[],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}
  public  IPromise $apply(net.java.html.lib.Function.A1,? extends java.lang.Object> resolver) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.$apply$357($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(resolver, new Class[] {IQResolveReject.class}))));
  }
  // CallSignature: {"children":[],"kind":"CallSignature","comment":null,"name":null,"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IPromise","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"text":null,"declarationList":null,"parameters":[{"name":{"kind":"Identifier","text":"resolver","right":[]},"type":{"kind":"FunctionType","text":null,"typeName":null,"type":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"types":[],"typeArguments":[],"parameters":[{"name":{"kind":"Identifier","text":"resolve","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"typeParameters":[{"children":[],"kind":"TypeParameter","comment":null,"name":{"kind":"Identifier","text":"T","right":[]},"type":null,"text":null,"declarationList":null,"parameters":[],"typeParameters":[],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}
  public  IPromise $apply(net.java.html.lib.Function.A2,? super IQResolveReject,? extends java.lang.Object> resolver) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.$apply$358($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(resolver, new Class[] {IQResolveReject.class, IQResolveReject.class}))));
  }
  // CallSignature: {"children":[],"kind":"CallSignature","comment":null,"name":null,"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IPromise","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"text":null,"declarationList":null,"parameters":[{"name":{"kind":"Identifier","text":"resolver","right":[]},"type":{"kind":"FunctionType","text":null,"typeName":null,"type":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"types":[],"typeArguments":[],"parameters":[{"name":{"kind":"Identifier","text":"resolve","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"T","right":[]},"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null},{"name":{"kind":"Identifier","text":"reject","right":[]},"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IQResolveReject","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"AnyKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null}],"typeParameters":[{"children":[],"kind":"TypeParameter","comment":null,"name":{"kind":"Identifier","text":"T","right":[]},"type":null,"text":null,"declarationList":null,"parameters":[],"typeParameters":[],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}
  public  IPromise all(IPromise[] promises) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.all$359($js(this), /* ArrayType*/$js(promises)));
  }
  public  IPromise all(java.lang.Object[] values) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.all$360($js(this), values));
  }
  public  IPromise all(net.java.html.lib.Objs promises) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.all$361($js(this), /* TypeLiteral*/$js(promises)));
  }
  /**
  * Creates a Deferred object which represents a task which will finish in the future.
  */
  public  IDeferred defer() {
    return (IDeferred)net.java.html.lib.angular.IDeferred.$as($Typings$.defer$362($js(this)));
  }
  /**
  * Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it.
  *
  * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject.
  *
  * @param reason Constant, message, exception or an object representing the rejection reason.
  */
  public IPromise reject(java.lang.Object reason) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.reject$363($js(this), /* AnyKeyword*/$js(reason)));
  }
  /**
  * Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it.
  *
  * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject.
  *
  * @param reason Constant, message, exception or an object representing the rejection reason.
  */
  public IPromise reject() {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.reject$364($js(this)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  */
  public IPromise resolve() {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.resolve$365($js(this)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  *
  * @param value Value or a promise
  */
  public  IPromise resolve(IPromise value) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.resolve$366($js(this), /* UnionType*/$js(value)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  *
  * @param value Value or a promise
  */
  public  IPromise resolve(T value) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.resolve$366($js(this), /* UnionType*/$js(value)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  */
  public IPromise when() {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.when$367($js(this)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  *
  * @param value Value or a promise
  */
  public  IPromise when(IPromise value) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.when$368($js(this), /* UnionType*/$js(value)));
  }
  /**
  * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted.
  *
  * @param value Value or a promise
  */
  public  IPromise when(T value) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.when$368($js(this), /* UnionType*/$js(value)));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy