Class 
Use 
PREV CLASS   NEXT CLASS      All Classes   All Packages
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

java.base / java.lang
Class WeakPairMap.Pair.Weak<K1,K2>
java.lang.Object
  java.lang.ref.Reference<K1>
      java.lang.ref.WeakReference<K1>
Enclosing interface:
WeakPairMap.Pair<K1,K2>

public static final class WeakPairMap.Pair.Weak<K1,K2>
extends WeakReference<K1>
A Pair where both keys are weakly-referenced. It is composed of two instances of WeakRefPeers:


     +-referent-> [K1]                +-referent-> [K2]
     |                                |
   +----------------+               +----------------+
   | Pair.Weak <:   |-----peer----->| (anonymous) <: |
   | WeakRefPeer,   |               | WeakRefPeer    |
   | Pair           |<--weakPair()--|                |
   +----------------+               +----------------+
     |            ^
     |            |
     +-weakPair()-+

 

Pair.Weak is used for CHM keys. Both peers are associated with the same ReferenceQueue so when either of their referents becomes weakly-reachable, the corresponding entries can be expunged from the map.


Method Summary
boolean
int
Method Detail
first
public K1 first
()

second
public K2 second
()

hashCode
public int hashCode
()

equals
public boolean equals
(Object obj)

 Class 
Use 
PREV CLASS   NEXT CLASS      All Classes   All Packages
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz