16
|
1 package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations;
|
|
2
|
55
|
3 import java.nio.ByteBuffer;
|
|
4
|
18
|
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command;
|
81
|
6
|
18
|
7
|
50
|
8 public final class AppendChildAtOperation implements NodeOperation
|
16
|
9 {
|
50
|
10 private final int pos;
|
|
11
|
|
12 public AppendChildAtOperation(int _pos)
|
|
13 {
|
|
14 pos = _pos;
|
|
15 }
|
|
16
|
18
|
17 public Command getCommand()
|
|
18 {
|
|
19 return Command.APPEND_CHILD;
|
|
20 }
|
|
21
|
81
|
22 /*@Override
|
|
23 public <T extends TreeNode> Either<Error,T> invoke(T _target)
|
50
|
24 {
|
|
25 AppendChildAt appendChildAt = new AppendChildAt(pos);
|
|
26 return appendChildAt.edit(_target);
|
81
|
27 }*/
|
55
|
28
|
|
29 @Override
|
|
30 public int getPosition()
|
|
31 {
|
|
32 return pos;
|
|
33 }
|
|
34
|
|
35 @Override
|
|
36 public String getKey()
|
|
37 {
|
|
38 return null;
|
|
39 }
|
|
40
|
|
41 @Override
|
|
42 public ByteBuffer getValue()
|
|
43 {
|
|
44 return null;
|
|
45 }
|
16
|
46 }
|