Mercurial > hg > Papers > 2015 > sugi-master
diff paper/source/Sort.java @ 8:f948d683c29a
modify chapter4 and add source
author | sugi |
---|---|
date | Wed, 07 Jan 2015 19:01:15 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paper/source/Sort.java Wed Jan 07 19:01:15 2015 +0900 @@ -0,0 +1,14 @@ +public class SortPhase extends CodeSegment{ + private Receiver info = ids.create(CommandType.PEEK); + + public SortPhase(String key){ + info.setKey(key); + } + + @Override + public void run() { + DataList list1 = info.asClass(DataList.class); + Sort.quickSort(list1); + ods.flip(info); + } +} \ No newline at end of file