Class Baseball


public class Baseball extends AbstractProvider<SportProviders>
Generate random components of baseball game, e.g. teams, coaches, positions and players.
Since:
1.7.0
  • Constructor Details

    • Baseball

      protected Baseball(SportProviders faker)
      Baseball Create a constructor for Baseball.
      Parameters:
      faker - The Faker instance for generating random, different kinds of disease, e.g. the internal disease.
  • Method Details

    • teams

      public String teams()
      Generate random Baseball teams
      Returns:
      Baseball teams
    • coaches

      public String coaches()
      Generate random coaches in baseball game
      Returns:
      Baseball coaches
    • positions

      public String positions()
      Generate random positions in baseball game
      Returns:
      Baseball positions
    • players

      public String players()
      Generate random baseball players
      Returns:
      Baseball players