Author: toad
Date: 2009-04-18 13:54:03 +0000 (Sat, 18 Apr 2009)
New Revision: 26964
Modified:
trunk/freenet/src/freenet/support/LRUHashtable.java
Log:
Generics
Modified: trunk/freenet/src/freenet/support/LRUHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/LRUHashtable.java 2009-04-18 13:49:32 UTC
(rev 26963)
+++ trunk/freenet/src/freenet/support/LRUHashtable.java 2009-04-18 13:54:03 UTC
(rev 26964)
@@ -49,7 +49,7 @@
/**
* @return Least recently pushed key.
*/
- public final synchronized Object popKey() {
+ public final synchronized K popKey() {
if ( list.size() > 0 ) {
return hash.remove(list.pop().obj).obj;
} else {
@@ -60,7 +60,7 @@
/**
* @return Least recently pushed value.
*/
- public final synchronized Object popValue() {
+ public final synchronized V popValue() {
if ( list.size() > 0 ) {
return hash.remove(list.pop().obj).value;
} else {
@@ -68,7 +68,7 @@
}
}
- public final synchronized Object peekValue() {
+ public final synchronized V peekValue() {
if ( list.size() > 0 ) {
return hash.get(list.tail().obj).value;
} else {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs