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