@Service public class CustomerRepo extends Object implements DomainRepo
Constructor and Description |
---|
CustomerRepo() |
Modifier and Type | Method and Description |
---|---|
void |
add(CustomerInfo customer) |
int |
count()
Deprecated.
|
CustomerInfo |
createCustomerInfo(String name,
int population) |
CustomerInfo |
findById(long id) |
List<CustomerInfo> |
findByName(String name) |
CustomerInfo |
findByNameAndPowerType(String name,
PowerType type) |
Collection<CustomerInfo> |
list() |
void |
recycle()
Implementations must clear out the repository in preparation for
a new simulation.
|
int |
size() |
public CustomerInfo createCustomerInfo(String name, int population)
public void add(CustomerInfo customer)
public Collection<CustomerInfo> list()
@Deprecated public int count()
public int size()
public CustomerInfo findById(long id)
public List<CustomerInfo> findByName(String name)
public CustomerInfo findByNameAndPowerType(String name, PowerType type)
public void recycle()
DomainRepo
recycle
in interface DomainRepo
Copyright © 2019 Power TAC. All rights reserved.