Package net.andreinc.mockneat.unit.text
Class Markovs
- java.lang.Object
-
- net.andreinc.mockneat.abstraction.MockUnitBase
-
- net.andreinc.mockneat.unit.text.Markovs
-
- All Implemented Interfaces:
MockUnit<java.lang.String>,MockUnitString
public class Markovs extends MockUnitBase implements MockUnitString
-
-
Field Summary
-
Fields inherited from class net.andreinc.mockneat.abstraction.MockUnitBase
mockNeat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MockUnitStringloremIpsum()static Markovsmarkovs()Returns aMarkovsobject that can be used to generate arbitrary text that can pass as almost valid using Markov ChainsMarkovssize(int size)java.util.function.Supplier<java.lang.String>supplier()This is the sole abstract method of the interface.MockUnitStringtype(MarkovChainType type)MockUnitStringtypes(MarkovChainType... types)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnit
array, array, collection, collection, collection, collection, collection, collection, consume, consume, get, get, list, list, list, list, list, list, map, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapKeys, mapToDouble, mapToInt, mapToLocalDate, mapToLong, mapToString, mapToString, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, mapVals, serialize, set, set, set, set, set, set, stream, val, val, valStr, valStr
-
Methods inherited from interface net.andreinc.mockneat.abstraction.MockUnitString
accumulate, append, array, base64, escapeCsv, escapeEcmaScript, escapeHtml, escapeXml, format, md2, md5, noSpecialChars, prepend, replace, replace, replaceAll, replaceFirst, sha1, sha256, sha384, sha512, split, split, sub, sub, urlEncode, urlEncode
-
-
-
-
Constructor Detail
-
Markovs
public Markovs(MockNeat mockNeat)
-
Markovs
protected Markovs()
-
-
Method Detail
-
markovs
public static Markovs markovs()
Returns a
Markovsobject that can be used to generate arbitrary text that can pass as almost valid using Markov ChainsIt can also be used to generate Lorem Ipsum text that is different each time the ending method is invoked
- Returns:
- A re-usable
Markovsobject. TheMarkovsclass implementsMockUnitString
-
size
public Markovs size(int size)
-
supplier
public java.util.function.Supplier<java.lang.String> supplier()
Description copied from interface:MockUnitThis is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
-
types
public MockUnitString types(MarkovChainType... types)
-
type
public MockUnitString type(MarkovChainType type)
-
loremIpsum
public MockUnitString loremIpsum()
-
-