public List<E> subList(int fromIndex, int toIndex) {
        List<E> sub = getList().subList(fromIndex, toIndex);
        return new UnmodifiableList<E>(sub);
    }
Constructor that wraps (not copies).

@param list the list to decorate, must not be null
@throws IllegalArgumentException if list is null
jphp-runtime/src/php/runtime/common/collections/list/UnmodifiableList.java