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<String>Xtendで型を持つ変数を作成するにはどうすればよいですか?
List<String>
var list = Lists::newArrayList() list.add( "xxx" )
動作しません。の型はadd()伝播されません。
add()
var list = Lists::newArrayList() as List<String>
実行時に例外を発生させます。
Xtend で特定のタイプのリストを作成するにはどうすればよいですか?
Xtend のどのバージョンを使用していますか?
var list = newArrayList list.add('')
私のために働きます(2.4.3)。
またvar List<String> list = newArrayList、トリックを行います。
var List<String> list = newArrayList