Create weak reference array with initial capacity initialCapacity.
Force the array to behave as a hard reference.
Force the array to behave as a weak reference.
Returns i-th referenced object if it isn't finalized thus creating a strong reference to it. Returns null otherwise.
Changes i-th referenced object.
Appends new weak reference to target to the array.
Remove dead weak references from the array. This may decrease count.
Reserve at least newCapacity elements for appending.
Total count of alive weak references.
Return array internal buffer which can be safely used while the array behaves as a hard reference.
Returns the capacity of the array.
Total count of (possibly dead) weak references.
Determines whether array behaves as a hard reference. false by default.
Implements weak reference array.
It gives better performance when working with multiple weak references at once.