view src/treecms/test/GenericsTest2.java @ 19:019ca5abb1f0

commit
author shoshi
date Tue, 31 May 2011 15:55:28 +0900
parents
children
line wrap: on
line source

package treecms.test;

public class GenericsTest2
{

}

interface Attributes
{
	void a();
}

interface Children<T extends Node<T>>
{
	void b();
}

interface Context
{
	void c();
}

interface Node<T extends Node<T>> extends Attributes , Children<T> , Context
{
}

interface SingleNode extends Node<SingleNode>
{
	
}

class ChildrenImpl implements Children<SingleNode>
{

	@Override
	public void b() {
		// TODO Auto-generated method stub
		
	}
	
}