Class IBANs
java.lang.Object
net.andreinc.mockneat.abstraction.MockUnitBase
net.andreinc.mockneat.unit.financial.IBANs
- All Implemented Interfaces:
MockUnit<java.lang.String>,MockUnitString
public class IBANs extends MockUnitBase implements MockUnitString
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.StringcheckDigits(java.lang.String numericIBAN)static IBANsibans()Returns aIBANsobject that can be used to generate valid IBANs codes.java.util.function.Supplier<java.lang.String>supplier()This is the sole abstract method of the interface.MockUnitStringtype(IBANType ibanType)This method returns a valid IBAN code from the given supplied country.MockUnitStringtypes(IBANType... ibanTypes)This method returns a valid IBAN code from the given supplied countries.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
-
ibans
Returns a
IBANsobject that can be used to generate valid IBANs codes.- Returns:
- A re-usable
IBANsobject. TheIBANsclass implementsMockUnitString.
-
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. -
type
This method returns a valid IBAN code from the given supplied country.- Parameters:
ibanType- The country- Returns:
- A new
MockUnitString.
-
types
This method returns a valid IBAN code from the given supplied countries.- Parameters:
ibanTypes- The countries from which the selection is randomly being done.- Returns:
- A new
MockUnitString
-
checkDigits
public java.lang.String checkDigits(java.lang.String numericIBAN)
-