textmaven.stemmer
Class Cache

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byjava.util.LinkedHashMap
              extended bytextmaven.stemmer.Cache
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Cache
extends java.util.LinkedHashMap

See Also:
Serialized Form

Field Summary
static int INITIAL_SIZE
           
static float LOAD_FACTOR
           
static int THRESHOLD
           
 
Constructor Summary
Cache(int initial, float load, boolean access)
           
 
Method Summary
 boolean containsKey(java.lang.Object key)
           
 long getHits()
           
 long getTotal()
           
protected  boolean removeEldestEntry(java.util.Map.Entry eldest)
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

INITIAL_SIZE

public static final int INITIAL_SIZE
See Also:
Constant Field Values

LOAD_FACTOR

public static final float LOAD_FACTOR
See Also:
Constant Field Values

THRESHOLD

public static final int THRESHOLD
See Also:
Constant Field Values
Constructor Detail

Cache

public Cache(int initial,
             float load,
             boolean access)
Method Detail

containsKey

public final boolean containsKey(java.lang.Object key)

removeEldestEntry

protected boolean removeEldestEntry(java.util.Map.Entry eldest)

getHits

public long getHits()

getTotal

public long getTotal()


Copyright © 2002-2005 Sourceforge. All Rights Reserved.