package resources;
import java.util.ArrayList;
public class CustomersModel {
private ArrayList<Customer> customers;
public CustomersModel() {
customers = new ArrayList<>();
}
public Customer getCustomerById(int customerId) {
return customers.get(customerId);
}
public void addCustomer(Customer customer) {
customers.add(customer);
}
public void removeCustomer(int customerId) {
customers.remove(customerId);
}
public int getCustomersCount() {
return customers.size();
}
}