|
@@ -1,7 +1,49 @@
|
|
|
package com.example.data_structure.vo;
|
|
package com.example.data_structure.vo;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+
|
|
|
@Component
|
|
@Component
|
|
|
public class SelectionSortVO {
|
|
public class SelectionSortVO {
|
|
|
|
|
+ private SelectionStep initial;
|
|
|
|
|
+ private ArrayList<SelectionStep> onSortingStates;
|
|
|
|
|
+
|
|
|
|
|
+ public SelectionSortVO(SelectionStep initial, ArrayList<SelectionStep> onSortingStates) {
|
|
|
|
|
+ this.initial = initial;
|
|
|
|
|
+ this.onSortingStates = onSortingStates;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public SelectionSortVO() {
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //getter
|
|
|
|
|
+ public SelectionStep getInitial() {
|
|
|
|
|
+ return initial;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public ArrayList<SelectionStep> getOnSortingStates() {
|
|
|
|
|
+ return onSortingStates;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ //setter
|
|
|
|
|
+ public void setInitial(SelectionStep initial) {
|
|
|
|
|
+ this.initial = initial;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setOnSortingStates(ArrayList<SelectionStep> onSortingStates) {
|
|
|
|
|
+ this.onSortingStates = onSortingStates;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //toString
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String toString() {
|
|
|
|
|
+ return "SelectionSortVO{" +
|
|
|
|
|
+ "initial=" + initial +
|
|
|
|
|
+ ", onSortingStates=" + onSortingStates +
|
|
|
|
|
+ '}';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|