Package elemental2.core
Class JsSet<VALUE>
- java.lang.Object
-
- elemental2.core.JsSet<VALUE>
-
- All Implemented Interfaces:
JsIterable<VALUE>
@JsType(isNative=true, name="Set", namespace="<global>") public class JsSet<VALUE> extends java.lang.Object implements JsIterable<VALUE>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JsSet.ConstructorIterableUnionType<VALUE>
static interface
JsSet.ForEachCallbackFn<VALUE>
-
Field Summary
Fields Modifier and Type Field Description int
size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsSet<VALUE>
add(VALUE value)
void
clear()
boolean
delete(VALUE value)
JsIteratorIterable<JsArray<VALUE>>
entries()
java.lang.Object
forEach(JsSet.ForEachCallbackFn<? super VALUE> callback)
<THIS> java.lang.Object
forEach(JsSet.ForEachCallbackFn<? super VALUE> callback, THIS thisArg)
boolean
has(VALUE value)
JsIteratorIterable<VALUE>
keys()
JsIteratorIterable<VALUE>
values()
-
-
-
Constructor Detail
-
JsSet
public JsSet()
-
JsSet
public JsSet(JsSet.ConstructorIterableUnionType<VALUE> iterable)
-
JsSet
public JsSet(JsIterable<VALUE> iterable)
-
JsSet
public JsSet(VALUE[] iterable)
-
-
Method Detail
-
clear
public void clear()
-
delete
public boolean delete(VALUE value)
-
entries
public JsIteratorIterable<JsArray<VALUE>> entries()
-
forEach
public <THIS> java.lang.Object forEach(JsSet.ForEachCallbackFn<? super VALUE> callback, THIS thisArg)
-
forEach
public java.lang.Object forEach(JsSet.ForEachCallbackFn<? super VALUE> callback)
-
has
public boolean has(VALUE value)
-
keys
public JsIteratorIterable<VALUE> keys()
-
values
public JsIteratorIterable<VALUE> values()
-
-