类型:抽象类
接口的继承以及实现关系
典型方法实现解析
public List<E> subList(int fromIndex, int toIndex)
将集合从fromIndex到toIndex地方进行剪切 public List<E> subList(int fromIndex, int toIndex) {
return (this instanceof RandomAccess ?
new RandomAccessSubList<>(this, fromIndex, toIndex) :
new SubList<>(this, fromIndex, toIndex));
}
SubList
原文:https://www.cnblogs.com/lonecloud/p/10692230.html