Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 :
List<Object[]>
想转换为:
List<MyClass>
显然它可以迭代所有列表,但可能存在为它准备好的类?谢谢。
不,没有简单的方法可以做到这一点。您必须通过迭代输入集合来“以正常方式”执行此操作。