本文介绍了T []对象是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ArrayAdapter的构造函数如下:
the constructor of ArrayAdapter is as follows:
ArrayAdapter(Context context, int textViewResourceId, T[] objects)
im是Java&的新功能android,我之前没有看到数据类型T[],有人可以解释一下它是什么还是给我一些有关它的网页?
im new to java & android, i didn't see the data type T[] before, can anyone explain what it is or give me some web page about it?
推荐答案T是一个具体的类类型(不太可能),或者是一个通用类.查看您的班级标题,看看是否是这种情况.
The T is either a concrete class type (unlikely), or it is a class generic. Look at your class heading to see if this is the case.
IE
Class SomeClassType<T> {}有关泛型及其工作原理的教程,请参见 docs.oracle/javase/tutorial/java/generics/index.html
Tutorials on generics and how they work can be found here docs.oracle/javase/tutorial/java/generics/index.html
更多推荐
T []对象是什么?
发布评论