mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-10 09:22:49 +00:00
Improves javadoc in more than 190 classes
This commit improves and adds missing javadoc to 196 java files. Now more than 98% of the code is documented.
This commit is contained in:
@@ -130,8 +130,10 @@ public class WeakCacheService extends AbstractService implements CacheService {
|
||||
* if there isn't any strong reference to the value object.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
* @param <K> the key type
|
||||
* @param <V> the value type
|
||||
* @param <K>
|
||||
* the key type
|
||||
* @param <V>
|
||||
* the value type
|
||||
*/
|
||||
private class WeakCache<K, V> extends AbstractReferenceCache<K, V>
|
||||
implements Cache<K, V> {
|
||||
@@ -142,18 +144,36 @@ public class WeakCacheService extends AbstractService implements CacheService {
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
private class Entry extends WeakReference<V> {
|
||||
/**
|
||||
* The key
|
||||
*/
|
||||
private K key;
|
||||
|
||||
/**
|
||||
* @param key
|
||||
* the key
|
||||
* @param referent
|
||||
* the value
|
||||
* @param q
|
||||
* the queue
|
||||
*/
|
||||
Entry(K key, V referent, ReferenceQueue<? super V> q) {
|
||||
super(referent, q);
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the key
|
||||
*/
|
||||
K getKey() {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cacheName
|
||||
* the cache name
|
||||
*/
|
||||
WeakCache(String cacheName) {
|
||||
super(cacheName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user