public class KeyedPhantomReference<K,T> extends PhantomReference<T> implements KeyedReference<K,T>
Constructor and Description |
---|
KeyedPhantomReference(K key,
T ref,
ReferenceQueue<T> queue) |
Modifier and Type | Method and Description |
---|---|
K |
getKey() |
ReferenceType |
getType() |
String |
toString() |
get
clear, enqueue, isEnqueued
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, enqueue, get, isEnqueued
public KeyedPhantomReference(K key, T ref, ReferenceQueue<T> queue)
public ReferenceType getType()
getType
in interface KeyedReference<K,T>
public K getKey()
getKey
in interface KeyedReference<K,T>
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html