org.apache.oro.text
public final class PatternCacheLRU extends GenericPatternCache
Since: 1.0
Version: 2.0.8
See Also: GenericPatternCache
Constructor Summary | |
---|---|
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:
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY, compiler); | |
PatternCacheLRU(int capacity)
Same as:
PatternCacheLRU(capacity, new Perl5Compiler()); | |
PatternCacheLRU()
Same as:
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY); |
Parameters: capacity The capacity of the cache. compiler The PatternCompiler to use to compile patterns.
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY, compiler);
PatternCacheLRU(capacity, new Perl5Compiler());
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY);