In code, if I write a code line like this:
GClass<Double> x = new GClass<Double>();
And let say, that the class is like this:
public static class GClass<T> {
private T value = null;
public GClass() {
// What is T?
}
}
Where I inserted the question "What is T?", I don't want the value (that is null
), but its type (that is Double
).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…