public class JsSet<VALUE> extends java.lang.Object implements JsIterable<VALUE>
Modifier and Type | Class and Description |
---|---|
static interface |
JsSet.ConstructorIterableUnionType<VALUE> |
static interface |
JsSet.ForEachCallbackFn<VALUE> |
Modifier and Type | Field and Description |
---|---|
int |
size |
Constructor and Description |
---|
JsSet() |
JsSet(JsIterable<VALUE> iterable) |
JsSet(JsSet.ConstructorIterableUnionType<VALUE> iterable) |
JsSet(VALUE[] iterable) |
Modifier and Type | Method and Description |
---|---|
JsSet<VALUE> |
add(VALUE value) |
void |
clear() |
boolean |
delete(VALUE value) |
JsIteratorIterable<VALUE[]> |
entries() |
java.lang.Object |
forEach(JsSet.ForEachCallbackFn<? super VALUE> callback) |
java.lang.Object |
forEach(JsSet.ForEachCallbackFn<? super VALUE> callback,
java.lang.Object thisArg) |
boolean |
has(VALUE value) |
JsIteratorIterable<VALUE> |
keys() |
JsIteratorIterable<VALUE> |
values() |
public JsSet()
public JsSet(JsSet.ConstructorIterableUnionType<VALUE> iterable)
public JsSet(JsIterable<VALUE> iterable)
public JsSet(VALUE[] iterable)
public void clear()
public boolean delete(VALUE value)
public JsIteratorIterable<VALUE[]> entries()
public java.lang.Object forEach(JsSet.ForEachCallbackFn<? super VALUE> callback, java.lang.Object thisArg)
public java.lang.Object forEach(JsSet.ForEachCallbackFn<? super VALUE> callback)
public boolean has(VALUE value)
public JsIteratorIterable<VALUE> keys()
public JsIteratorIterable<VALUE> values()