public ImmutableIntArray subArray ( int startIndex , int endIndex ) { Preconditions . checkPositionIndexes ( startIndex , endIndex , length ( ) ) ; return startIndex == endIndex ? EMPTY : new ImmutableIntArray ( array , start + startIndex , start + endIndex ) ; }
Returns a new immutable array containing the values in the specified range .