Class NativeWeakSet

  • All Implemented Interfaces:
    java.io.Serializable, ConstProperties, DebuggableObject, IdFunctionCall, Scriptable, SymbolScriptable

    public class NativeWeakSet
    extends IdScriptableObject
    This is an implementation of the ES6 WeakSet class. It is very similar to NativeWeakMap, with the exception being that it doesn't store any values. Java will GC the key only when there is no longer any reference to it other than the weak reference. That means that it is important that the "value" that we put in the WeakHashMap here is not one that contains the key.
    See Also:
    Serialized Form