public class Encoded extends AbstractStringGenerator
Produces Strings whose code points correspond to code points in
a given Charset
(by default).
| Modifier and Type | Class and Description |
|---|---|
static interface |
Encoded.InCharset
Names a
Charset. |
| Constructor and Description |
|---|
Encoded() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
codePointInRange(int codePoint) |
void |
configure(Encoded.InCharset charset)
Tells this generator to emit strings in the given charset.
|
protected int |
nextCodePoint(SourceOfRandomness random) |
canShrink, doShrink, generateaddComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, typespublic void configure(Encoded.InCharset charset)
charset - a charset to use as the source for characters of
generated stringsprotected int nextCodePoint(SourceOfRandomness random)
nextCodePoint in class AbstractStringGeneratorprotected boolean codePointInRange(int codePoint)
codePointInRange in class AbstractStringGeneratorCopyright © 2016. All rights reserved.