private static long calcSliceFence ( long skip , long limit ) { long sliceFence = limit >= 0 ? skip + limit : Long . MAX_VALUE ; // Check for overflow return ( sliceFence >= 0 ) ? sliceFence : Long . MAX_VALUE ; }
Calculates the slice fence which is one past the index of the slice range