| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static class | References.LookupKeyEqualsReference<K>
A short-lived adapter used for looking up an entry in the cache where the keys are weakly held. |
| pack-priv static class | References.LookupKeyReference<K>
A short-lived adapter used for looking up an entry in the cache where the keys are weakly held. |
| pack-priv static class | |
| pack-priv static class | References.WeakKeyEqualsReference<K>
The key in a cache that holds the key weakly and uses equals equivalence. |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| References | back to summary |
|---|---|
| private References() | |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable E | Returns: The object to which this reference refers, ornull if this reference object
has been clearedReturns this reference object's referent. |
| public Object | Returns: the key that is associated to the cached entryReturns the key that is associated to the cache entry holding this reference. |
| public default boolean | objectEquals(Object
the reference object with which to compare object)Returns |
| public default boolean | Returns: true if this object is the same as the argument; false otherwisethe reference object with which to compare object)Returns |
| get | back to summary |
|---|---|
| public @Nullable E get() Returns this reference object's referent. If this reference object has been cleared, either
by the program or by the garbage collector, then this method returns
| |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the
| |
| objectEquals | back to summary |
|---|---|
| public default boolean objectEquals(Object object) Returns
| |
| referenceEquals | back to summary |
|---|---|
| public default boolean referenceEquals(@Nullable Object object) Returns | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public K | get()
Implements com. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public String |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| key | back to summary |
|---|---|
| private final K key | |
| LookupKeyEqualsReference | back to summary |
|---|---|
| public LookupKeyEqualsReference(K key) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public K get() Implements com. Doc from com. Returns this reference object's referent. If this reference object has been cleared, either
by the program or by the garbage collector, then this method returns
| |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public K | get()
Implements com. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public String |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| key | back to summary |
|---|---|
| private final K key | |
| LookupKeyReference | back to summary |
|---|---|
| public LookupKeyReference(K key) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public K get() Implements com. Doc from com. Returns this reference object's referent. If this reference object has been cleared, either
by the program or by the garbage collector, then this method returns
| |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public void | |
| public String |
| keyReference | back to summary |
|---|---|
| private Object keyReference | |
| SoftValueReference | back to summary |
|---|---|
| public SoftValueReference(Object keyReference, @Nullable V value, @Nullable ReferenceQueue<V> queue) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setKeyReference | back to summary |
|---|---|
| public void setKeyReference(Object keyReference) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public String |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| WeakKeyEqualsReference | back to summary |
|---|---|
| public WeakKeyEqualsReference(K key, @Nullable ReferenceQueue<K> queue) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public String |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| WeakKeyReference | back to summary |
|---|---|
| public WeakKeyReference(@Nullable K key, @Nullable ReferenceQueue<K> queue) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | getKeyReference()
Implements com. |
| public int | |
| public void | |
| public String |
| keyReference | back to summary |
|---|---|
| private Object keyReference | |
| WeakValueReference | back to summary |
|---|---|
| public WeakValueReference(Object keyReference, @Nullable V value, @Nullable ReferenceQueue<V> queue) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKeyReference | back to summary |
|---|---|
| public Object getKeyReference() Implements com. Doc from com. Returns the key that is associated to the cache entry holding this reference. If the cache
holds keys strongly, this is that key instance. Otherwise, the cache holds keys weakly and
the | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setKeyReference | back to summary |
|---|---|
| public void setKeyReference(Object keyReference) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |