Class CVVS
java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.financial.CVVS
- All Implemented Interfaces:
MockUnit<java.lang.String>,MockUnitString
public class CVVS extends MockUnitBase implements MockUnitString
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description MockUnitStringcvv3()Returns a newMockUnitStringthat can be used to generate a 3-digit code.MockUnitStringcvv4()Returns a newMockUnitStringthat can be used to generate a 4-digit code.static CVVScvvs()Returns aCVVSobject that can be used to generate credit card cvv codes.java.util.function.Supplier<java.lang.String>supplier()This is the sole abstract method of the interface.MockUnitStringtype(CVVType type)Returns a newMockUnitStringthat can be used to generate a CVV code based on the supplied type:CVVTypeMockUnitStringtypes(CVVType... types)Returns a newMockUnitStringthat can be used to generate a CVV code based on the supplied types:CVVType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, valStrMethods 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 Details
-
Method Details
-
cvvs
Returns a
CVVSobject that can be used to generate credit card cvv codes.Note: By default the values generated are 3-digits CVV codes.
- Returns:
- A re-usable
CVVSobject. TheCVVSclass implements theMockUnitStringinterface.
-
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. -
cvv3
Returns a new
MockUnitStringthat can be used to generate a 3-digit code.- Returns:
- A new
MockUnitString
-
cvv4
Returns a new
MockUnitStringthat can be used to generate a 4-digit code.- Returns:
- A new
MockUnitString.
-
type
Returns a new
MockUnitStringthat can be used to generate a CVV code based on the supplied type:CVVType- Parameters:
type- The type of the CVV.- Returns:
- A new
MockUnitString
-
types
Returns a newMockUnitStringthat can be used to generate a CVV code based on the supplied types:CVVType.- Parameters:
types- A var-arg array containing the supplied types.- Returns:
- A new
MockUnitString.
-