我有一个Iterable <! - ? extends String - >并需要一个Iterable <string>

时间:2016-02-12 04:40:42

标签: java generics

我有一个接口(Guava CacheBuilder),它给了我 <input type="text" name="<?php echo $this->get_field_name('ctitle');?>[]" placeholder="Enter title here"/> 。我最终需要调用一个Iterable<? extends String>的方法。似乎我不能直接传递Iterable<String>,这真的很烦人。

到目前为止,我最好的解决方案是将Iterable复制到一些集合中。

Iterable<? extends String>

有更好的方法吗?

0 个答案:

没有答案
相关问题