Class Finance


public class Finance extends AbstractProvider<BaseProviders>
Since:
0.8.0
  • Field Details

  • Constructor Details

  • Method Details

    • nasdaqTicker

      @Deprecated(since="2.2.0", forRemoval=true) public String nasdaqTicker()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2.2.0. For removal in 3.0.0 version. Use Stock.nsdqSymbol() instead.
    • nyseTicker

      @Deprecated(since="2.2.0", forRemoval=true) public String nyseTicker()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2.2.0. For removal in 3.0.0 version. Use Stock.nyseSymbol() instead.
    • stockMarket

      @Deprecated(since="2.2.0", forRemoval=true) public String stockMarket()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 2.2.0. For removal in 3.0.0 version. Use Stock.exchanges() instead.
    • ibanSupportedCountries

      public static Set<String> ibanSupportedCountries()
      Get the set of country codes supported for IBAN generation
    • creditCard

      public String creditCard(Finance.CreditCardType creditCardType)
      Generates a random credit card number of the specified type. The number will pass the LUHN check.
      Parameters:
      creditCardType - the type of credit card to generate (see Finance.CreditCardType for options)
      Returns:
      a valid credit card number of the specified type
    • creditCard

      public String creditCard()
      Generate a random credit card number of a random type. The number will pass the LUHN check.
      Returns:
      a valid credit card number of a random type. Likely 16 digits, but could be 14-19.
    • bic

      public String bic()
      Generates a random Business Identifier Code
    • iban

      public String iban()
      Generates a random IBAN (International Bank Account Number). The country code is chosen randomly from the supported countries. The generated IBAN will pass the checksum test.
      Returns:
      a valid IBAN
    • iban

      public String iban(String countryCode)
      Generates an IBAN for the given country code. The generated IBAN will pass the checksum test.
      Parameters:
      countryCode - the 2-letter country code for the IBAN.
      Returns:
      a valid IBAN
    • usRoutingNumber

      public String usRoutingNumber()
      Generates a random US bank routing number of 9 characters. The number will pass the checksum test.
      Returns:
      a valid US bank routing number