Iterator<RandomTextGenerartor>
, org.refcodes.generator.Generator<String>
, org.refcodes.mixin.CharSetAccessor
, org.refcodes.mixin.CharSetAccessor.CharSetBuilder<RandomTextGenerartor>
, org.refcodes.mixin.CharSetAccessor.CharSetMutator
, org.refcodes.mixin.CharSetAccessor.CharSetProperty
, org.refcodes.mixin.ColumnWidthAccessor
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<RandomTextGenerartor>
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
public class RandomTextGenerartor extends Object implements org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<RandomTextGenerartor>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty, org.refcodes.generator.Generator<String>, org.refcodes.mixin.CharSetAccessor.CharSetProperty, org.refcodes.mixin.CharSetAccessor.CharSetBuilder<RandomTextGenerartor>
RandomTextMode
property and
other settings.org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B extends org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B>>, org.refcodes.mixin.CharSetAccessor.CharSetMutator, org.refcodes.mixin.CharSetAccessor.CharSetProperty
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
Constructor | Description |
---|---|
RandomTextGenerartor() |
Modifier and Type | Method | Description |
---|---|---|
static String |
asString(int aColumnWidth,
RandomTextMode aRandomTextMode) |
Creates a random text from the given parameters.
|
char[] |
getCharSet() |
|
int |
getColumnWidth() |
|
RandomTextMode |
getRandomTextMode() |
Retrieves the random text mode from the random text mode property.
|
boolean |
hasNext() |
|
String |
next() |
|
void |
setCharSet(char[] aCharSet) |
|
void |
setColumnWidth(int aColumnWidth) |
|
void |
setRandomTextMode(RandomTextMode aRandomTextMode) |
Sets the random text mode for the random text mode property.
|
RandomTextGenerartor |
withCharSet(char[] aCharSet) |
|
RandomTextGenerartor |
withColumnWidth(int aColumnWidth) |
|
RandomTextGenerartor |
withRandomTextMode(RandomTextMode aRandomTextMode) |
Sets the random text mode for the random text mode property.
|
letColumnWidth
forEachRemaining, remove
public RandomTextGenerartor withColumnWidth(int aColumnWidth)
withColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<RandomTextGenerartor>
public void setColumnWidth(int aColumnWidth)
setColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
public int getColumnWidth()
getColumnWidth
in interface org.refcodes.mixin.ColumnWidthAccessor
public boolean hasNext()
hasNext
in interface org.refcodes.generator.Generator<String>
hasNext
in interface Iterator<RandomTextGenerartor>
public String next()
next
in interface org.refcodes.generator.Generator<String>
next
in interface Iterator<RandomTextGenerartor>
public RandomTextMode getRandomTextMode()
public void setRandomTextMode(RandomTextMode aRandomTextMode)
aRandomTextMode
- The random text mode to be stored by the random
text mode property.public char[] getCharSet()
getCharSet
in interface org.refcodes.mixin.CharSetAccessor
public void setCharSet(char[] aCharSet)
setCharSet
in interface org.refcodes.mixin.CharSetAccessor.CharSetMutator
public RandomTextGenerartor withCharSet(char[] aCharSet)
withCharSet
in interface org.refcodes.mixin.CharSetAccessor.CharSetBuilder<RandomTextGenerartor>
public RandomTextGenerartor withRandomTextMode(RandomTextMode aRandomTextMode)
aRandomTextMode
- The random text mode to be stored by the random
text mode property.public static String asString(int aColumnWidth, RandomTextMode aRandomTextMode)
aColumnWidth
- The length of the text to generate.aRandomTextMode
- The chars to use for the random text.Copyright © 2021. All rights reserved.