T []对象是什么?

编程入门 行业动态 更新时间:2024-10-27 00:28:13
本文介绍了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 []对象是什么?

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

发布评论

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

>www.elefans.com

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