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