All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.internal.command.UpdateCommand Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.internal.command;

import java.util.List;

/** Update command for updating a versioned aggregate root. 
 *  The command does not contain the id because the id is encoded into the command endpoint url. */
public class UpdateCommand implements Command {
    private final int version;
    private final List actions;

    private UpdateCommand(int version, List actions) {
        this.version = version;
        this.actions = actions;
    }

    public UpdateCommand(int version, Update update) {
        this(version, update.getActions());
    }

    public int getVersion() { return version; }

    public List getActions() { return actions; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy