comparison src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/DefaultTreeEditor.java @ 78:540a27dde42f

Delete EnableNode and EnableNodeWrapper but not repair test program
author one
date Sun, 31 Aug 2014 00:44:35 +0900
parents 2fc0b0313dc0
children 715a9fbf02fc
comparison
equal deleted inserted replaced
77:0f01ee222035 78:540a27dde42f
48 } 48 }
49 49
50 // target 50 // target
51 Direction<T> targetDirection = path.head(); 51 Direction<T> targetDirection = path.head();
52 T target = targetDirection.getTarget(); 52 T target = targetDirection.getTarget();
53 EditableNodeWrapper<T> wrapper = new EditableNodeWrapper<T>(target); 53 //EditableNodeWrapper<T> wrapper = new EditableNodeWrapper<T>(target);
54 Either<Error,EditableNodeWrapper<T>> either = _editor.edit(wrapper); 54 Either<Error,T> either = _editor.edit(target);
55 if(either.isA()){ 55 if(either.isA()){
56 return DefaultEither.newA(either.a()); 56 return DefaultEither.newA(either.a());
57 } 57 }
58 58
59 T newNode = either.b().getWrap(); 59 T newNode = either.b();
60 60
61 // top 61 // top
62 int pos = targetDirection.getPosition(); 62 int pos = targetDirection.getPosition();
63 T child = newNode; 63 T child = newNode;
64 for(Direction<T> parentDirection : path.tail()){ 64 for(Direction<T> parentDirection : path.tail()){