Package org.refcodes.textual
Class RandomTextGenerartorImpl
- java.lang.Object
-
- org.refcodes.textual.RandomTextGenerartorImpl
-
- All Implemented Interfaces:
java.util.Iterator<RandomTextGenerartor>
,org.refcodes.generator.Generator<RandomTextGenerartor>
,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
,RandomTextGenerartor
public class RandomTextGenerartorImpl extends java.lang.Object implements RandomTextGenerartor
The Class RandomTextGenerartorImpl.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.CharSetAccessor
org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B extends org.refcodes.mixin.CharSetAccessor.CharSetBuilder<B>>, org.refcodes.mixin.CharSetAccessor.CharSetMutator, org.refcodes.mixin.CharSetAccessor.CharSetProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ColumnWidthAccessor
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
-
-
Constructor Summary
Constructors Constructor Description RandomTextGenerartorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getCharSet()
int
getColumnWidth()
RandomTextMode
getRandomTextMode()
Retrieves the random text mode from the random text mode property.boolean
hasNext()
java.lang.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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.textual.RandomTextGenerartor
withRandomTextMode
-
-
-
-
Method Detail
-
withColumnWidth
public RandomTextGenerartor withColumnWidth(int aColumnWidth)
- Specified by:
withColumnWidth
in interfaceorg.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<RandomTextGenerartor>
-
setColumnWidth
public void setColumnWidth(int aColumnWidth)
- Specified by:
setColumnWidth
in interfaceorg.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
-
getColumnWidth
public int getColumnWidth()
- Specified by:
getColumnWidth
in interfaceorg.refcodes.mixin.ColumnWidthAccessor
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceorg.refcodes.generator.Generator<RandomTextGenerartor>
- Specified by:
hasNext
in interfacejava.util.Iterator<RandomTextGenerartor>
-
next
public java.lang.String next()
- Specified by:
next
in interfaceorg.refcodes.generator.Generator<RandomTextGenerartor>
- Specified by:
next
in interfacejava.util.Iterator<RandomTextGenerartor>
-
getRandomTextMode
public RandomTextMode getRandomTextMode()
Retrieves the random text mode from the random text mode property.- Specified by:
getRandomTextMode
in interfaceRandomTextGenerartor
- Returns:
- The random text mode stored by the random text mode property.
-
setRandomTextMode
public void setRandomTextMode(RandomTextMode aRandomTextMode)
Sets the random text mode for the random text mode property.- Specified by:
setRandomTextMode
in interfaceRandomTextGenerartor
- Parameters:
aRandomTextMode
- The random text mode to be stored by the random text mode property.
-
getCharSet
public char[] getCharSet()
- Specified by:
getCharSet
in interfaceorg.refcodes.mixin.CharSetAccessor
-
setCharSet
public void setCharSet(char[] aCharSet)
- Specified by:
setCharSet
in interfaceorg.refcodes.mixin.CharSetAccessor.CharSetMutator
-
withCharSet
public RandomTextGenerartor withCharSet(char[] aCharSet)
- Specified by:
withCharSet
in interfaceorg.refcodes.mixin.CharSetAccessor.CharSetBuilder<RandomTextGenerartor>
-
-