Class BazaarUtil


  • public final class BazaarUtil
    extends java.lang.Object
    Utility class providing common functionality for the creation of Bazaars.
    Author:
    Lucas Koehler
    • Method Detail

      • createBazaar

        public static <T> Bazaar<T> createBazaar​(T defaultProduct)
        Creates a new Bazaar initialized with a given default product. The created bazaar has a vendor which can always provide the default product. Thereby, this vendor always bids the lowest valid amount.
        Type Parameters:
        T - The type of the bazaar's created products.
        Parameters:
        defaultProduct - The default product which can always be created
        Returns:
        The created Bazaar