private static int [ ] releaseOffsets ( List < List < Integer > > offsetsStorage , List < Integer > offsets ) { int numValues = offsets . size ( ) ; int [ ] extractedValues ; if ( numValues == 0 ) { extractedValues = EMPTY_OFFSETS_ARRAY ; } else { extractedValues = new int [ numValues ] ; for ( int valueNo = 0 ; valueNo < numValues ; valueNo ++ ) { extractedValues [ valueNo ] = offsets . get ( valueNo ) . intValue ( ) ; } } offsets . clear ( ) ; offsetsStorage . add ( offsets ) ; return extractedValues ; }
Release an offsets list to storage .