Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Payment implements EstadoOrder{
- private static final Payment instancia = new Payment();
- private Payment(){}
- public static Payment getInstancia(){ return instancia; }
- @Override
- public void anadirProducto(Order order, Product producto) {
- }
- @Override
- public void eliminarProducto(Order order, Product producto) {
- }
- @Override
- public void siguienteEstado(Order order) {
- order.setEstado(Cancelled.getInstancia());
- }
- @Override
- public void anteriorEstado(Order order) {
- }
- @Override
- public void modificarCantidadProducto(Order order, Product producto) {
- }
- @Override
- public void pagar(Order order) {
- order.setConfirmado(true);
- }
- @Override
- public void cancelar(Order order) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement