Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/impl/DefaultTreeEditor.java @ 76:2fc0b0313dc0
Move to Bullet in Board
but has worning
author | one |
---|---|
date | Fri, 29 Aug 2014 03:16:27 +0900 |
parents | 240a385bf79d |
children | 540a27dde42f |
comparison
equal
deleted
inserted
replaced
75:26dfa90016d1 | 76:2fc0b0313dc0 |
---|---|
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()){ |
65 TreeNodeChildren<T> chs = parentDirection.getTarget().getChildren(); | 65 TreeNodeChildren<T> chs = parentDirection.getTarget().getChildren(); |
66 | 66 |
67 Either<Error,T> ret = chs.replaceNode(pos,child); | 67 Either<Error,T> ret = chs.replaceNode(pos,child); |
68 if(ret.isA()){ | 68 if(ret.isA()){ |
69 return DefaultEither.newA(ret.a()); | 69 return DefaultEither.newA(ret.a()); |
70 } | 70 } |
71 | 71 |