Class Currency


@Deprecated(since="2.2.0", forRemoval=true) public class Currency extends AbstractProvider<BaseProviders>
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. This faker is deprecated due to the existence of duplicate Money faker with similar methods. Use Money instead.
Since:
0.8.0
  • Constructor Details

    • Currency

      public Currency(BaseProviders faker)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • name

      @Deprecated(since="2.2.0", forRemoval=true) public String name()
      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 Money.currency() instead.
    • code

      @Deprecated(since="2.2.0", forRemoval=true) public String code()
      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 Money.currencyCode() instead.
      Returns:
      an alphabetic currency code (ex. USD)