view src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTreeContext.java @ 54:650fe2a0dccc

modified tests
author Shoshi TAMAKI
date Fri, 08 Feb 2013 17:08:42 +0900
parents
children e97a59269bf5 715a9fbf02fc
line wrap: on
line source

package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction;

import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.ChangeSet;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;

public class DefaultTreeContext<T extends TreeNode<T>> implements TreeContext<T>
{
	private final T root;
	private final ChangeSet cs;
	
	public DefaultTreeContext(T _newRoot,ChangeSet _cs)
	{
		root = _newRoot;
		cs = _cs;
	}

	@Override
	public ChangeSet getChangeSet()
	{
		return cs;
	}

	@Override
	public T getTreeNode()
	{
		return root;
	}
}