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
  • Constructor Details

  • Method Details

    • ibans

      public static IBANs ibans()

      Returns a IBANs object that can be used to generate valid IBANs codes.

      Returns:
      A re-usable IBANs object. The IBANs class implements MockUnitString.
    • supplier

      public java.util.function.Supplier<java.lang.String> supplier()
      Description copied from interface: MockUnit
      This is the sole abstract method of the interface. Needs to be implemented every-time a MockUnit is implemented.
      Specified by:
      supplier in interface MockUnit<java.lang.String>
      Returns:
      A Supplier<T>.
    • type

      public MockUnitString type​(IBANType ibanType)
      This method returns a valid IBAN code from the given supplied country.
      Parameters:
      ibanType - The country
      Returns:
      A new MockUnitString.
    • types

      public MockUnitString types​(IBANType... ibanTypes)
      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)