Modifier and Type | Method and Description |
---|---|
static RandomReader.Builder |
RandomReader.usingAllCharacters()
Returns a builder for random readers that can return all possible characters.
|
static RandomReader.Builder |
RandomReader.usingAlphabet(String alphabet)
Returns a builder for random readers that can return characters from a specific alphabet.
|
static RandomReader.Builder |
RandomReader.usingDigits()
Returns a builder for random readers that can return digits.
|
static RandomReader.Builder |
RandomReader.usingGenerator(ToIntFunction<Random> generator)
Returns a builder for random readers that uses a custom generator for characters.
|
static RandomReader.Builder |
RandomReader.usingHex()
Returns a builder for random readers that can return characters from 0-9 and a-z.
|
static RandomReader.Builder |
RandomReader.usingHex(boolean upperCase)
Returns a builder for random readers that can return characters from 0-9 and a-z or A-Z.
|
static RandomReader.Builder |
RandomReader.usingRange(char start,
char end)
Returns a builder for random readers that can return characters from a specific range.
|
RandomReader.Builder |
RandomReader.Builder.withLimit(long limit)
Specifies the maximum number of characters to return while reading.
|
RandomReader.Builder |
RandomReader.Builder.withRandom(Random random)
Specifies the random to use.
|
RandomReader.Builder |
RandomReader.Builder.withRandomLimit(int min,
int max)
Specifies that a random number should be used for the maximum number of characters to return while reading.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
RandomReader.Builder.transform(Function<? super RandomReader.Builder,? extends R> f)
This method allows the application of a function to this builder object.
|
Copyright © 2020–2024. All rights reserved.