Search in sources :

Example 1 with CustomerCriteria

use of com.salesmanager.core.model.customer.CustomerCriteria in project shopizer by shopizer-ecommerce.

the class CustomerApi method createCustomerCriteria.

private CustomerCriteria createCustomerCriteria(Integer start, Integer count) {
    CustomerCriteria customerCriteria = new CustomerCriteria();
    Optional.ofNullable(start).ifPresent(customerCriteria::setStartIndex);
    Optional.ofNullable(count).ifPresent(customerCriteria::setMaxCount);
    return customerCriteria;
}
Also used : CustomerCriteria(com.salesmanager.core.model.customer.CustomerCriteria)

Aggregations

CustomerCriteria (com.salesmanager.core.model.customer.CustomerCriteria)1