Class CodePoints
java.lang.Object
com.pholser.junit.quickcheck.generator.java.lang.strings.CodePoints
Maps ordinal values to corresponding Unicode code points in a
Charset.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Charset,CodePoints> private final List<CodePoints.CodePointRange> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(CodePoints.CodePointRange range) intat(int index) booleancontains(int codePoint) private static CodePointsencodableCodePoints(CharsetEncoder encoder) static CodePointsGives a set of the code points in the given charset.private static CodePointsintsize()
-
Field Details
-
ENCODABLES
-
ranges
-
-
Constructor Details
-
CodePoints
CodePoints()
-
-
Method Details
-
at
public int at(int index) - Parameters:
index- index to look up- Returns:
- this code point set's
index'th code point - Throws:
IndexOutOfBoundsException- if there is no such code point
-
size
public int size()- Returns:
- how many code points are in this code point set
-
contains
public boolean contains(int codePoint) - Parameters:
codePoint- a code point- Returns:
- whether this code point set contains the given code point
-
forCharset
Gives a set of the code points in the given charset.- Parameters:
c- a charset- Returns:
- the set of code points in the charset
-
load
-
add
-
encodableCodePoints
-