Mercurial > hg > Members > tatsuki > bench > jungle-core
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/operations/DeleteAttributeOperation.java @ 81:715a9fbf02fc
remove <T> many source
author | one |
---|---|
date | Sun, 31 Aug 2014 07:46:30 +0900 |
parents | 540a27dde42f |
children | 14ce7a0dedca |
comparison
equal
deleted
inserted
replaced
80:a833000f64bf | 81:715a9fbf02fc |
---|---|
1 package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations; | 1 package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations; |
2 | 2 |
3 import java.nio.ByteBuffer; | 3 import java.nio.ByteBuffer; |
4 | 4 |
5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command; | 5 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command; |
6 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode; | 6 |
7 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.DeleteAttribute; | |
8 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either; | |
9 import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error; | |
10 | 7 |
11 public final class DeleteAttributeOperation implements NodeOperation | 8 public final class DeleteAttributeOperation implements NodeOperation |
12 { | 9 { |
13 private final String key; | 10 private final String key; |
14 | 11 |
21 public Command getCommand() | 18 public Command getCommand() |
22 { | 19 { |
23 return Command.DELETE_ATTRIBUTE; | 20 return Command.DELETE_ATTRIBUTE; |
24 } | 21 } |
25 | 22 |
26 @Override | 23 /*@Override |
27 public <T extends TreeNode<T>> Either<Error,T> invoke(T _target) | 24 public <T extends TreeNode> Either<Error,T> invoke(T _target) |
28 { | 25 { |
29 DeleteAttribute deleteAttribute = new DeleteAttribute(key); | 26 DeleteAttribute deleteAttribute = new DeleteAttribute(key); |
30 return deleteAttribute.edit(_target); | 27 return deleteAttribute.edit(_target); |
31 } | 28 }*/ |
32 | 29 |
33 @Override | 30 @Override |
34 public int getPosition() | 31 public int getPosition() |
35 { | 32 { |
36 return -1; | 33 return -1; |