elemental2.core.JsWeakSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-core Show documentation
Show all versions of elemental2-core Show documentation
Thin Java abstractions for the standard built-in objects for Javascript.
package elemental2.core;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
@JsType(isNative = true, name = "WeakSet", namespace = JsPackage.GLOBAL)
public class JsWeakSet {
@JsType(isNative = true, name = "?", namespace = JsPackage.GLOBAL)
public interface ConstructorIterableUnionType {
@JsOverlay
static JsWeakSet.ConstructorIterableUnionType of(Object o) {
return Js.cast(o);
}
@JsOverlay
default JsIterable asJsIterable() {
return Js.cast(this);
}
@JsOverlay
default VALUE[] asVALUEArray() {
return Js.cast(this);
}
@JsOverlay
default boolean isVALUEArray() {
return (Object) this instanceof Object[];
}
}
public JsWeakSet() {}
public JsWeakSet(JsWeakSet.ConstructorIterableUnionType iterable) {}
public JsWeakSet(JsIterable iterable) {}
public JsWeakSet(VALUE[] iterable) {}
public native JsWeakSet add(VALUE value);
public native void clear();
public native boolean delete(VALUE value);
public native boolean has(VALUE value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy