打字猴:1.700467263e+09
1700467263
1700467264 this.vector=_vector;
1700467265
1700467266 }
1700467267
1700467268 //判断是否到达尾部
1700467269
1700467270 public boolean hasNext(){
1700467271
1700467272 if(this.cursor==this.vector.size()){
1700467273
1700467274 return false;
1700467275
1700467276 }else{
1700467277
1700467278 return true;
1700467279
1700467280 }
1700467281
1700467282 }
1700467283
1700467284 //返回下一个元素
1700467285
1700467286 public Object next(){
1700467287
1700467288 Object result=null;
1700467289
1700467290 if(this.hasNext()){
1700467291
1700467292 result=this.vector.get(this.cursor++);
1700467293
1700467294 }else{
1700467295
1700467296 result=null;
1700467297
1700467298 }
1700467299
1700467300 return result;
1700467301
1700467302 }
1700467303
1700467304 //删除当前元素
1700467305
1700467306 public boolean remove(){
1700467307
1700467308 this.vector.remove(this.cursor);
1700467309
1700467310 return true;
1700467311
1700467312 }
[ 上一页 ]  [ :1.700467263e+09 ]  [ 下一页 ]