Mercurial > hg > Database > jungle-sharp
annotate src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/store/operations/ReplaceRootNodeOperation.cs @ 7:02b2ab7bffe6
fix
author | Kazuma |
---|---|
date | Tue, 27 Sep 2016 18:36:05 +0900 |
parents | dec15de2c6ff |
children |
rev | line source |
---|---|
0 | 1 using UnityEngine; |
2 using System.Collections; | |
3 using System; | |
4 | |
5 public class ReplaceRootNodeOperation : NodeOperation { | |
6 | |
7 public Command getCommand() { | |
8 return Command.REPLACE_ROOT; | |
9 } | |
10 | |
11 public Either<Error, TreeNode> invoke(TreeNode target) { | |
12 return target.appendRootNode(); | |
13 } | |
14 | |
15 public int getPosition() { | |
16 return -1; | |
17 } | |
18 | |
19 public string getKey() { | |
20 return null; | |
21 } | |
22 | |
7 | 23 public byte[] getValue() { |
24 return new byte[1]{0}; | |
0 | 25 } |
26 | |
27 } |