comparison src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverser/InterfaceTraverser.java @ 102:3d88bad21bc4

refactoring 9-11
author one
date Thu, 11 Sep 2014 18:02:26 +0900
parents c297f0015d9e
children 3e75124550e9
comparison
equal deleted inserted replaced
101:c297f0015d9e 102:3d88bad21bc4
58 * this.find(_query,_key,_attribute); } 58 * this.find(_query,_key,_attribute); }
59 * 59 *
60 * public List<Pair<NodePath,TreeNode>> distinct(String _key ,String... 60 * public List<Pair<NodePath,TreeNode>> distinct(String _key ,String...
61 * _attribute){ return null; } 61 * _attribute){ return null; }
62 */ 62 */
63 public JungleTreeEditor update(final UpdateQuery query) { 63
64 public JungleTreeEditor update(UpdateQuery query) {
64 Iterator<Pair<TreeNode, NodePath>> findNode = find(query); 65 Iterator<Pair<TreeNode, NodePath>> findNode = find(query);
65 //do { 66 //do {
66 for (; findNode.hasNext();) { 67 for (; findNode.hasNext();) {
67 Either<Error, JungleTreeEditor> either = editor.putAttribute(findNode.next().right(), "KEY", query.getUpdateAttribute()); 68 Either<Error, JungleTreeEditor> either = editor.putAttribute(findNode.next().right(), "KEY", query.getUpdateAttribute());
68 if (either.isA()) 69 if (either.isA())