Mercurial > hg > Members > nobuyasu > jungle-network
comparison src/jungle/test/codesegment/persistence/AliceJournal.java @ 51:9e782b4eb06e
add HashSetConvertDataSegment
author | one |
---|---|
date | Sat, 13 Jul 2013 15:59:47 +0900 |
parents | 4419ac56cbfd |
children | f47a02368099 |
comparison
equal
deleted
inserted
replaced
50:459b50f1a6ee | 51:9e782b4eb06e |
---|---|
31 private static class AliceChangeListWriter implements ChangeListWriter | 31 private static class AliceChangeListWriter implements ChangeListWriter |
32 { | 32 { |
33 @Override | 33 @Override |
34 public Result write(ChangeList _operations) | 34 public Result write(ChangeList _operations) |
35 { | 35 { |
36 /* | |
37 for(TreeOperation op : _operations){ | 36 for(TreeOperation op : _operations){ |
38 NodePath p = op.getNodePath(); | 37 NodePath p = op.getNodePath(); |
39 NodeOperation nodeOp = op.getNodeOperation(); | 38 NodeOperation nodeOp = op.getNodeOperation(); |
40 Command c = nodeOp.getCommand(); | 39 Command c = nodeOp.getCommand(); |
41 String args = ""; | 40 String args = ""; |
59 args = String.format("pos:%d",nodeOp.getPosition()); | 58 args = String.format("pos:%d",nodeOp.getPosition()); |
60 break; | 59 break; |
61 } | 60 } |
62 System.out.println(String.format("[%s:%s:%s]",c,p,args)); | 61 System.out.println(String.format("[%s:%s:%s]",c,p,args)); |
63 } | 62 } |
64 */ | |
65 return Result.SUCCESS; | 63 return Result.SUCCESS; |
66 } | 64 } |
67 } | 65 } |
68 | 66 |
69 private static class AliceChangeListReader implements ChangeListReader | 67 private static class AliceChangeListReader implements ChangeListReader |