diff options
Diffstat (limited to 'plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java')
-rw-r--r-- | plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java index 754ac3e596..457150957f 100644 --- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java +++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/ref/KeyedReference.java @@ -1,44 +1,44 @@ -/* - * Copyright (c) 2004 - 2011 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 - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.net4j.util.ref; - -import java.lang.ref.Reference; - -/** - * @see Reference - * @author Eike Stepper - */ -public interface KeyedReference<K, T> -{ - public ReferenceType getType(); - - public K getKey(); - - /** - * @see Reference#get() - */ - public T get(); - - /** - * @see Reference#clear() - */ - public void clear(); - - /** - * @see Reference#isEnqueued() - */ - public boolean isEnqueued(); - - /** - * @see Reference#enqueue() - */ - public boolean enqueue(); -} +/*
+ * Copyright (c) 2004 - 2012 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
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.util.ref;
+
+import java.lang.ref.Reference;
+
+/**
+ * @see Reference
+ * @author Eike Stepper
+ */
+public interface KeyedReference<K, T>
+{
+ public ReferenceType getType();
+
+ public K getKey();
+
+ /**
+ * @see Reference#get()
+ */
+ public T get();
+
+ /**
+ * @see Reference#clear()
+ */
+ public void clear();
+
+ /**
+ * @see Reference#isEnqueued()
+ */
+ public boolean isEnqueued();
+
+ /**
+ * @see Reference#enqueue()
+ */
+ public boolean enqueue();
+}
|