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, generate, magnitudeaddComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, gen, gen, hasComponents, narrow, numberOfNeededComponents, provide, 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 AbstractStringGenerator© Copyright 2010-2020 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu