62,614
社区成员
发帖
与我相关
我的任务
分享
Iterator<KeyValueVersion> i =
kvstore.storeIterator(Direction.UNORDERED, 0,
myKey, kr, null);
while (i.hasNext()) {
Value v = i.next().getValue();
System.out.println("Sub################:"+new String(v.getValue()));
}
public class ArrayList<E> extends AbstractList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable
ArrayList 实现了List接口
public interface List<E> extends Collection<E>
list 继承自collection接口
public interface Collection<E> extends Iterable<E> {
Collection集成自Iterable接口
上面只是举个例子,Iterator本身是接口,只有实际实现了接口的类才有长度,明白了吗,楼主问的有点问题