public class V8ValueSet extends V8ValueObject implements IV8ValueSet
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
FUNCTION_ENTRIES
The constant FUNCTION_ENTRIES.
|
protected static java.lang.String |
FUNCTION_KEYS
The constant FUNCTION_KEYS.
|
ERROR_THE_KEY_VALUE_PAIR_MUST_MATCH, FUNCTION_ADD, FUNCTION_DELETE, FUNCTION_GET, FUNCTION_HAS, FUNCTION_SET, METHOD_PREFIX_GET, METHOD_PREFIX_IS, METHOD_PREFIX_SET, PROPERTY_PROTOTYPE
handle, INVALID_HANDLE, weak
OBJECT_CONVERTER, v8Runtime
DEFAULT_BATCH_SIZE, MIN_BATCH_SIZE
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object key)
Add.
|
V8ValueArray |
asArray()
As array.
|
void |
clear()
Clear.
|
boolean |
delete(java.lang.Object key)
Delete property by key object.
|
<Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniConsumer<Key,E> consumer)
Invoke the uni-consumer for each of the keys.
|
<Key extends V8Value,E extends java.lang.Throwable> |
forEach(IJavetUniIndexedConsumer<Key,E> consumer)
Invoke the uni-indexed-consumer for each of the keys.
|
IV8ValueIterator<V8ValueArray> |
getEntries()
Gets entries.
|
IV8ValueIterator<V8Value> |
getKeys() |
int |
getSize() |
V8ValueReferenceType |
getType() |
boolean |
has(java.lang.Object value)
Has object property key by key object.
|
batchGet, bind, bindFunction, bindProperty, deletePrivateProperty, forEach, forEach, get, getBoolean, getDouble, getIdentityHash, getInteger, getLong, getOwnPropertyNames, getPrivateProperty, getProperty, getPropertyNames, getPrototype, getString, hasInternalType, hasOwnProperty, hasPrivateProperty, invokeExtended, invokeExtended, sameValue, set, set, setBoolean, setDouble, setInteger, setLong, setNull, setPrivateProperty, setProperty, setPrototype, setString, setUndefined, strictEquals, toJsonString, toProtoString, unbind, unbindFunction, unbindProperty, unbindProperty, unbindProperty, unbindProperty
addReference, checkV8Runtime, clearWeak, close, close, equals, getHandle, isClosed, isWeak, isWeak, removeReference, setWeak, toClone, toString
getV8Runtime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNull, addUndefined
batchGet, bind, bindFunction, bindFunction, bindFunction, bindProperty, bindProperty, deleteNull, deletePrivateProperty, deleteUndefined, forEach, forEach, forEach, forEach, forEach, forEach, get, getBigInteger, getBoolean, getDouble, getFloat, getIdentityHash, getInteger, getLong, getNull, getObject, getOwnPropertyNames, getOwnPropertyNameStrings, getPrivateProperty, getPrivatePropertyBoolean, getPrivatePropertyDouble, getPrivatePropertyFloat, getPrivatePropertyInteger, getPrivatePropertyLong, getPrivatePropertyNull, getPrivatePropertyObject, getPrivatePropertyPrimitive, getPrivatePropertyString, getPrivatePropertyUndefined, getPrivatePropertyZonedDateTime, getProperty, getPropertyBoolean, getPropertyDouble, getPropertyFloat, getPropertyInteger, getPropertyLong, getPropertyNames, getPropertyObject, getPropertyPrimitive, getPropertyString, getPropertyZonedDateTime, getPrototype, getString, getUndefined, getZonedDateTime, hasInternalType, hasNull, hasOwnProperty, hasPrivateProperty, hasUndefined, invoke, invoke, invokeBigInteger, invokeBoolean, invokeDouble, invokeExtended, invokeExtended, invokeFloat, invokeInteger, invokeLong, invokeObject, invokeString, invokeVoid, invokeVoid, invokeZonedDateTime, isGeneratorObject, set, set, setBoolean, setDouble, setInteger, setLong, setNull, setPrivateProperty, setPrivatePropertyNull, setPrivatePropertyUndefined, setProperty, setPropertyNull, setPropertyUndefined, setPrototype, setString, setUndefined, toJsonString, toProtoString, unbind, unbindFunction, unbindFunction, unbindFunction, unbindProperty, unbindProperty, unbindProperty, unbindProperty
clearWeak, close, getHandle, isClosed, isWeak, isWeak, setWeak
asBoolean, asDouble, asInt, asLong, asString, equals, getV8Runtime, isNull, isNullOrUndefined, isUndefined, sameValue, strictEquals
close
toClone, toClone
protected static final java.lang.String FUNCTION_ENTRIES
protected static final java.lang.String FUNCTION_KEYS
public void add(java.lang.Object key) throws JavetException
IV8ValueSet
add
in interface IV8ValueSet
key
- the keyJavetException
- the javet exception@CheckReturnValue public V8ValueArray asArray() throws JavetException
IV8ValueSet
asArray
in interface IV8ValueSet
JavetException
- the javet exceptionpublic void clear() throws JavetException
IV8ValueSet
clear
in interface IV8ValueSet
JavetException
- the javet exceptionpublic boolean delete(java.lang.Object key) throws JavetException
IV8ValueObject
delete
in interface IV8ValueObject
delete
in class V8ValueObject
key
- the keyJavetException
- the javet exceptionpublic <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniConsumer<Key,E> consumer) throws JavetException, E extends java.lang.Throwable
IV8ValueObject
forEach
in interface IV8ValueObject
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
public <Key extends V8Value,E extends java.lang.Throwable> int forEach(IJavetUniIndexedConsumer<Key,E> consumer) throws JavetException, E extends java.lang.Throwable
IV8ValueObject
forEach
in interface IV8ValueObject
Key
- the type of keyE
- the type of exceptionconsumer
- the consumerJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Throwable
@CheckReturnValue public IV8ValueIterator<V8ValueArray> getEntries() throws JavetException
IV8ValueSet
getEntries
in interface IV8ValueSet
JavetException
- the javet exception@CheckReturnValue public IV8ValueIterator<V8Value> getKeys() throws JavetException
getKeys
in interface IV8ValueKeyContainer
JavetException
public int getSize() throws JavetException
getSize
in interface IV8ValueKeyContainer
JavetException
public V8ValueReferenceType getType()
getType
in interface IV8ValueReference
getType
in class V8ValueObject
public boolean has(java.lang.Object value) throws JavetException
IV8ValueObject
has
in interface IV8ValueObject
has
in class V8ValueObject
value
- the valueJavetException
- the javet exception