view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/store/trasnformer/EditableAttributes.java @ 38:cb9fabaedfd4

added tests and changed testing provider to junit47
author Shoshi TAMAKI
date Mon, 28 Jan 2013 18:52:52 +0900
parents 3dfa0be90a0d
children 7d78bbf4a9cd
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer;

import java.nio.ByteBuffer;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Attributes;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.core.Parent;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.DefaultError;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error;

public interface EditableAttributes<T extends Parent<T>> extends Attributes
{
	public Either<Error,T> delete(String _key);
	public Either<Error,T> put(String _key,ByteBuffer _value);
	
	public static final Error KEY_NOT_FOUND = new DefaultError();
}