Class CarFactory

All Implemented Interfaces:
Cloneable

public class CarFactory extends AbstractCarFactory<Car>
Factory for creating instances of CarFactory.

The parameters this factory uses are defined as follows:

  • Constructor Details

    • CarFactory

      public CarFactory(Animation2D a2d)
      Constructor.
      Parameters:
      a2d - the animation
    • CarFactory

      public CarFactory()
      Constructor for a service provider. This constructor should not be used directly. It is necessary because of the introduction of modules in Java 9, and is used by a service provider that allows factories to be listed, possibly with documentation regarding their parameters. It just calls the default constructor with a null argument.
  • Method Details