public class Encoded extends AbstractStringGenerator
Produces String
s 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
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public 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 AbstractStringGenerator
protected boolean codePointInRange(int codePoint)
codePointInRange
in class AbstractStringGenerator
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu