elemental2.dom.URLSearchParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import elemental2.core.JsIterable;
import jsinterop.base.JsPropertyMap;
import elemental2.core.JsArray;
import jsinterop.base.Js;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.core.JsIteratorIterable;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class URLSearchParams implements JsIterable>{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorInitUnionType{
@JsOverlay
static URLSearchParams.ConstructorInitUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default JsArray> asJsArray(){
return Js.cast(this);
}
@JsOverlay
default JsPropertyMap asJsPropertyMap(){
return Js.cast(this);
}
@JsOverlay
default String asString(){
return Js.asString(this);
}
@JsOverlay
default boolean isJsArray(){
return (Object)this instanceof JsArray;
}
@JsOverlay
default boolean isString(){
return (Object)this instanceof String;
}
}
@JsFunction
public interface ForEachCallbackFn{
Object onInvoke(String value,String key);
}
public URLSearchParams(){}
public URLSearchParams(URLSearchParams.ConstructorInitUnionType init){}
public URLSearchParams(JsArray> init){}
public URLSearchParams(JsPropertyMap init){}
public URLSearchParams(String init){}
public URLSearchParams(String[][] init){}
public native void append(String name,String value);
public native void delete(String name);
public native JsIteratorIterable> entries();
public native void forEach(URLSearchParams.ForEachCallbackFn callback);
public native String get(String name);
public native JsArray getAll(String name);
public native boolean has(String name);
public native JsIteratorIterable keys();
public native void set(String name,String value);
public native void sort();
public native JsIteratorIterable values();
}