Class Encoded
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<String>
com.pholser.junit.quickcheck.generator.java.lang.AbstractStringGenerator
com.pholser.junit.quickcheck.generator.java.lang.Encoded
Produces Strings whose code points correspond to code points in
a given Charset
(by default).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancodePointInRange(int codePoint) voidconfigure(Encoded.InCharset charset) Tells this generator to emit strings in the given charset.private voidinitialize(Charset charset) protected intnextCodePoint(SourceOfRandomness random) Methods inherited from class com.pholser.junit.quickcheck.generator.java.lang.AbstractStringGenerator
canShrink, doShrink, generate, magnitudeMethods inherited from class com.pholser.junit.quickcheck.generator.Generator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, gen, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
-
Field Details
-
charsetPoints
-
-
Constructor Details
-
Encoded
public Encoded()
-
-
Method Details
-
configure
Tells this generator to emit strings in the given charset.- Parameters:
charset- a charset to use as the source for characters of generated strings
-
initialize
-
nextCodePoint
- Specified by:
nextCodePointin classAbstractStringGenerator
-
codePointInRange
protected boolean codePointInRange(int codePoint) - Specified by:
codePointInRangein classAbstractStringGenerator
-