This Is my Interfce BinaryHeterogenousHyperedge
:
public interface BinaryHeterogenousHyperedge
<M extends Vertex<L>, L,T extends Vertex<E>, E>
extends Hyperedge
{
public <T> List<Vertex> search(T centroid ,List<M> allElemntsVertex);
}
The method search take two parameter :
- a centroid vertex of type
T
( for example Tag Vertex) - a list of Vertx of type
M
!=T
(for example Image Vertex)
and return a list of vertex of both type T
and M
TagsImagesHyperEdges
implements this interface:
public class TagImagesHyperedge
implements BinaryHeterogenousHyperedge
<ImageVertex,Map<String, Instance> ,TagVertex,String>
{
@Override
public <T> List<Vertex> search(T centroid, List<ImageVertex> allElemntsVertex)
{
// TODO Auto-generated method stub
return null;
}
}
Why is type T
not inferred?