我想遍历存储在任意数据结构中的数据集合。我唯一的接口是Iterable。StringTemplate 可以做到这一点吗?
<source:{e|e.stuff}>
class Source<HasStuff> implements Iterable<HasStuff> {
// Implementation
}
我想遍历存储在任意数据结构中的数据集合。我唯一的接口是Iterable。StringTemplate 可以做到这一点吗?
<source:{e|e.stuff}>
class Source<HasStuff> implements Iterable<HasStuff> {
// Implementation
}