public List<StorageFile> createStorageFilesFromS3ObjectSummaries(List<S3ObjectSummary> s3ObjectSummaries){
  List<StorageFile> storageFiles=new ArrayList<>();
  for (  S3ObjectSummary s3ObjectSummary : s3ObjectSummaries) {
    storageFiles.add(new StorageFile(s3ObjectSummary.getKey(),s3ObjectSummary.getSize(),null));
  }
  return storageFiles;
}

public List < StorageFile > createStorageFilesFromS3ObjectSummaries ( List < S3ObjectSummary > s3ObjectSummaries ) { List < StorageFile > storageFiles = new ArrayList < > ( ) ; for ( S3ObjectSummary s3ObjectSummary : s3ObjectSummaries ) { storageFiles . add ( new StorageFile ( s3ObjectSummary . getKey ( ) , s3ObjectSummary . getSize ( ) , null ) ) ; } return storageFiles ; }
creates a list of storage files from the list of s3 object summaries .
