<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package labs.lab13;

/**
 * This class represents a single customer in a grocery store simulation.
 *
 * @author CS159 Faculty
 * @version 03/25/2024
 */
public class Customer {

    private int numItems;
    private final int enterTime;

    /**
     * Constructs a customer.
     *
     * @param numItems the number of items this customer has
     * @param startTime the time this customer entered the line
     */
    public Customer(int numItems, int startTime) {
        this.numItems = numItems;
        this.enterTime = startTime;
    }

    /**
     * Return the number of items that still need to be scanned.
     *
     * @return number of remaining items
     */
    public int numItems() {
        return numItems;
    }

    /**
     * Return the time that this customer entered the aisle.
     *
     * @return time that the customer started waiting.
     */
    public int enterTime() {
        return enterTime;
    }

}
</pre></body></html>