'Vertex3<T>'のインスタンスを含むセットを作成しようとしています。セットを作成する行に少し問題があります。
public Set<Vertex3<Integer>> verticies = new Set<Vertex3<Integer>>();
Eclipseは、等号の右側の「Set」部分に赤で下線を引き、「タイプSet <Vertex3<Integer>>をインスタンス化できません」というエラーメッセージを表示します。
'Vertex3<T>'は次のように定義されます。
public class Vertex3 <T> {
public T x;
public T y;
public T z;
public Vertex3() {
// do nothing
}
public Vertex3(T x, T y, T z) {
this.x = x;
this.y = y;
this.z = z;
}
public Vertex3(T x, T y) {
this.x = x;
this.y = y;
}
}
提供できるどんな助けもありがたいです。