js.util.collections.WeakSet Maven / Gradle / Ivy
package js.util.collections;
import js.lang.Any;
import js.util.iterable.JsIterable;
import org.teavm.jso.JSBody;
import org.teavm.jso.JSByRef;
public abstract class WeakSet implements Any {
@JSBody(script = "return WeakSet.prototype")
static WeakSet prototype() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(script = "return new WeakSet()")
static WeakSet create() {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = "values", script = "return new WeakSet(values)")
static WeakSet create(Array values) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = "values", script = "return new WeakSet(values)")
static WeakSet create(JsIterable values) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
@JSBody(params = "values", script = "return new WeakSet(values)")
static WeakSet create(T... values) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
public native WeakSet add(T value);
public native boolean delete(T value);
public native boolean has(T value);
}