-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring due bad smell 'Long Parameter List' on undo, redo stack
- Loading branch information
1 parent
9acb795
commit b5e5a09
Showing
5 changed files
with
106 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package payroll; | ||
|
||
import java.util.List; | ||
import java.util.Stack; | ||
import payroll.employee.model.Employee; | ||
|
||
public class StackUndoRedo { | ||
Stack<List<Employee>> undo, redo; | ||
|
||
public StackUndoRedo(Stack<List<Employee>> undo, Stack<List<Employee>> redo){ | ||
this.undo = undo; | ||
this.redo = redo; | ||
} | ||
|
||
public Stack<List<Employee>> getUndo() { | ||
return undo; | ||
} | ||
|
||
public void setUndo(Stack<List<Employee>> undo) { | ||
this.undo = undo; | ||
} | ||
|
||
public Stack<List<Employee>> getRedo() { | ||
return redo; | ||
} | ||
|
||
public void setRedo(Stack<List<Employee>> redo) { | ||
this.redo = redo; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters