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