public final class PatternCacheLRU extends GenericPatternCache
GenericPatternCacheDEFAULT_CAPACITY| 构造器和说明 |
|---|
PatternCacheLRU()
Same as:
PatternCacheLRU(GenericPatternCache.DEFAULT_CAPACITY);
|
PatternCacheLRU(int capacity)
Same as:
PatternCacheLRU(capacity, new Perl5Compiler());
|
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);
|
addPattern, addPattern, capacity, getPattern, getPattern, sizepublic 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 © 2022. All rights reserved.