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

elemental2.core.JsWeakSet Maven / Gradle / Ivy

There is a newer version: 2.27
Show newest version
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