Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void nextChanges( Change currentChange, ArrayList<Change> proposedChanges, ArrayList<Change> curPath, ArrayList<ArrayList<Change>> ardalist ){
- curPath.add( currentChange );
- for( Change e : proposedChanges ){
- if( e.getChangeSource().equals( currentChange.getChangeTarget() ) ){
- if( !e.getChangeSource().equals( e.getChangeTarget() ) ){
- ArrayList<Change> curPathLocal = (ArrayList<Change>)curPath.clone();
- nextChanges( e, proposedChanges, curPathLocal, ardalist );
- }
- }
- }
- boolean add = true;
- for( ArrayList<Change> d : ardalist ){
- if( d.containsAll( curPath ) ){
- add = false;
- }
- }
- if( add ){
- ardalist.add( curPath );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement