Skip to content

Instantly share code, notes, and snippets.

@aytekin
Created December 18, 2020 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aytekin/239710e94a0646cb696631bc593fded4 to your computer and use it in GitHub Desktop.
Save aytekin/239710e94a0646cb696631bc593fded4 to your computer and use it in GitHub Desktop.
public class ProductService {
List<ProductDto> products = new ArrayList<ProductDto>();
ProductDto product;
public List<ProductDto> getProducts(){
return products;
}
public ProductDto get(Long id) throws ClassNotFoundException{
return product;
}
public ProductDto getByTitle(String title) {
return product;
}
public Long save(ProductDto product) throws StackOverflowError,IllegalArgumentException{
return (long) 1;
}
public boolean delete(Long id){
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment