Interface SupplyManager

    • Method Detail

      • demand

        <S extends Supply> S demand​(Demand<S> demand)
        Returns the Supply for a Demand, preferably an existing one. If the Supply doesn't exist yet (as part of the domain model or externalized), it creates and attaches it.
        Type Parameters:
        S - Subclass of Supply
        Parameters:
        demand - never null
        Returns:
        never null