APIdia Launch Partner
Top Description Methods
jdk.internal.util

public sealed Interface ReferenceKey<T>

permits StrongReferenceKey<T>, WeakReferenceKey<T>, SoftReferenceKey<T>
Known Direct Implementers
jdk.internal.util.SoftReferenceKey, jdk.internal.util.StrongReferenceKey, jdk.internal.util.WeakReferenceKey
Type Parameters
<T>
key type
Imports
java.lang.ref.Reference

View/wrapper of keys used by the backing ReferencedKeyMap. There are two style of keys; one for entries in the backing map and one for queries to the backing map. This second style avoids the overhead of a Reference object.
Since
21

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the value of the unwrapped key
get
()

Returns the value of the unwrapped key.

public void
unused()

Cleanup unused key.

Method Detail

getback to summary
public T get()

Returns the value of the unwrapped key.

Returns:T

the value of the unwrapped key

unusedback to summary
public void unused()

Cleanup unused key.