comparison src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/IndexJungleTreeEditor.java @ 129:8067fec660ab

remove Error
author one
date Tue, 14 Oct 2014 15:11:17 +0900
parents 9c46e5c2ffac
children bb53330364f1
comparison
equal deleted inserted replaced
128:9c46e5c2ffac 129:8067fec660ab
129 public Either<Error,JungleTreeEditor> deleteAttribute(NodePath _path, String _key) 129 public Either<Error,JungleTreeEditor> deleteAttribute(NodePath _path, String _key)
130 { 130 {
131 DeleteAttribute deleteAttribute = new DeleteAttribute(_key); 131 DeleteAttribute deleteAttribute = new DeleteAttribute(_key);
132 DeleteIndexEditor indexEditor = new DeleteIndexEditor(); 132 DeleteIndexEditor indexEditor = new DeleteIndexEditor();
133 Either<Error,IndexJungleTreeEditor> either = _edit(_path,deleteAttribute,indexEditor); 133 Either<Error,IndexJungleTreeEditor> either = _edit(_path,deleteAttribute,indexEditor);
134 Either<Error,JungleTreeEditor> newEither = indexEditor.edit(either.b()); 134 Either<Error,JungleTreeEditor> newEither = DefaultEither.newB(either.b());
135 return newEither; 135 return newEither;
136 } 136 }
137 137
138 @Override 138 @Override
139 public Either<Error,JungleTreeEditor> edit(NodePath _path,NodeEditor _editor) 139 public Either<Error,JungleTreeEditor> edit(NodePath _path,NodeEditor _editor)