什么是T []对象?(what's T[] object?)

编程入门 行业动态 更新时间:2024-10-25 12:26:05
什么是T []对象?(what's T[] object?)

ArrayAdapter的构造函数如下所示:

ArrayAdapter(Context context, int textViewResourceId, T[] objects)

即时通讯新的Java和Android,我没有看到数据类型T[]之前,任何人都可以解释它是什么,或给我一些关于它的网页?

the constructor of ArrayAdapter is as follows:

ArrayAdapter(Context context, int textViewResourceId, T[] objects)

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是具体的类类型(不太可能),或者它是类通用的。 看看你的班级标题,看看是否是这种情况。

IE

Class SomeClassType<T> {}

有关泛型的教程及其工作原理可以在这里找到http://docs.oracle.com/javase/tutorial/java/generics/index.html

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> {}

Tutorials on generics and how they work can be found here http://docs.oracle.com/javase/tutorial/java/generics/index.html

更多推荐

本文发布于:2023-07-31 19:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1347336.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   object

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!