@SuppressWarnings("ManualArrayToCollectionCopy") public void addSurrogateIds(Collection<IgniteUuid> col){
  if (surrogateIds == null) {
    surrogateIds=new IgniteUuid[ids.length];
    for (int i=lastExistingIdx + 1; i < surrogateIds.length; i++)     surrogateIds[i]=IgniteUuid.randomUuid();
  }
  for (int i=lastExistingIdx + 1; i < surrogateIds.length; i++)   col.add(surrogateIds[i]);
}

@ SuppressWarnings ( "ManualArrayToCollectionCopy" ) public void addSurrogateIds ( Collection < IgniteUuid > col ) { if ( surrogateIds == null ) { surrogateIds = new IgniteUuid [ ids . length ] ; for ( int i = lastExistingIdx + 1 ; i < surrogateIds . length ; i ++ ) surrogateIds [ i ] = IgniteUuid . randomUuid ( ) ; } for ( int i = lastExistingIdx + 1 ; i < surrogateIds . length ; i ++ ) col . add ( surrogateIds [ i ] ) ; }
add surrogate ids to provided collection potentially creating them on demand .
