码迷,mamicode.com
首页 > 其他好文 > 详细

AbstractList方法学习

时间:2017-10-20 20:08:37      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:视图   and   random   int   ret   instance   abstract   dex   abs   

 

public List<E> subList(int fromIndex, int toIndex) {
return (this instanceof RandomAccess ?
new RandomAccessSubList<>(this, fromIndex, toIndex) :
new SubList<>(this, fromIndex, toIndex));
}

注释:用来返回list一部分的视图.

AbstractList方法学习

标签:视图   and   random   int   ret   instance   abstract   dex   abs   

原文地址:http://www.cnblogs.com/devileNC/p/7700902.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!