Mercurial > hg > Database > jungle-sharp
view Main/jungle-main/store/operations/ReplaceRootNodeOperation.cs @ 35:f2ea780b3e80
fix
author | Kazuma Takeda |
---|---|
date | Wed, 22 Feb 2017 16:30:19 +0900 |
parents | 1466993c104c |
children |
line wrap: on
line source
using System.Collections; using System; namespace JungleDB { public class ReplaceRootNodeOperation : NodeOperation { public Command getCommand() { return Command.REPLACE_ROOT; } public Either<Error, TreeNode> invoke(TreeNode target) { return target.appendRootNode(); } public int getPosition() { return -1; } public string getKey() { return null; } public object getValue() { return null; } } }