public final class PatternCacheLRU extends GenericPatternCache
GenericPatternCache
DEFAULT_CAPACITY
Constructor and Description |
---|
PatternCacheLRU()
Same as:
|
PatternCacheLRU(int capacity)
Same as:
|
PatternCacheLRU(int capacity,
PatternCompiler compiler)
Creates a PatternCacheLRU instance with a given cache capacity,
and initialized to use a given PatternCompiler instance as a pattern
compiler.
|
PatternCacheLRU(PatternCompiler compiler)
Same as:
|
addPattern, addPattern, capacity, getPattern, getPattern, size
public PatternCacheLRU(int capacity, PatternCompiler compiler)
capacity
- The capacity of the cache.compiler
- The PatternCompiler to use to compile patterns.public PatternCacheLRU(PatternCompiler compiler)
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY, compiler);
public PatternCacheLRU(int capacity)
PatternCacheLRU(capacity, new Perl5Compiler());
public PatternCacheLRU()
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY);
Copyright ? 2000-2003 Apache Software Foundation. All Rights Reserved.