/guava/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
Preconditions.checkPositionIndexes( endIndex, length( ) ) ;
Preconditions.checkPositionIndexes ( startIndex, endIndex, length ( ) ) ;
return Arrays.stream(array, start, end); } public double[] toArray() { return Arrays.copyOfRange(array, start, end); } public ImmutableDoubleArray subArray(int startIndex, int endIndex) { <extra_id_0> return startIndex == endIndex ? EMPTY : new ImmutableDoubleArray(array, start + startIndex, start + endIndex); } private Spliterator.OfDouble spliterator() { return Spliterators.spliterator(array, start, end, Spliterator.IMMUTABLE | Spliterator.ORDERED);