package com.example.data_structure.vo; import org.springframework.stereotype.Component; import java.util.ArrayList; @Component public class QuickStep { private String type; //有六个值: beforeSelectPivot,onSelectPivot,onCompare,onExchange,onConfirm,allSorted private ArrayList content; public QuickStep(String type, ArrayList content) { this.type = type; this.content = content; } public QuickStep() { } //getter public String getType() { return type; } public ArrayList getContent() { return content; } //setter public void setType(String type) { this.type = type; } public void setContent(ArrayList content) { this.content = content; } //toString @Override public String toString() { return "QuickStep{" + "type='" + type + '\'' + ", content=" + content + '}'; } //copy public static ArrayList copyContent(ArrayList content){ ArrayList copyContent=new ArrayList(); for(int i=0;i