gpt4 book ai didi

java - 我可以获得对 List<> 对象的引用(该对象引用其元素之一)吗?

转载 作者:行者123 更新时间:2023-12-01 06:41:30 28 4
gpt4 key购买 nike

例如,我引用了 mItem我的对象List<mItem> mList Collection 。是否可以引用 mList使用mItem

最佳答案

简短的回答是否定的。列表中的项目不知道它们在列表中。 (当然,除非您在 mItem 对象内添加对列​​表的引用。)

关于java - 我可以获得对 List<> 对象的引用(该对象引用其元素之一)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5620478/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com