public List<Snapshot> currentSnapshots(String repositoryName){
  List<Snapshot> snapshotList=new ArrayList<>();
  List<SnapshotsInProgress.Entry> entries=currentSnapshots(repositoryName,null);
  for (  SnapshotsInProgress.Entry entry : entries) {
    snapshotList.add(inProgressSnapshot(entry));
  }
  CollectionUtil.timSort(snapshotList);
  return Collections.unmodifiableList(snapshotList);
}

public List < Snapshot > currentSnapshots ( String repositoryName ) { List < Snapshot > snapshotList = new ArrayList < > ( ) ; List < SnapshotsInProgress . Entry > entries = currentSnapshots ( repositoryName , null ) ; for ( SnapshotsInProgress . Entry entry : entries ) { snapshotList . add ( inProgressSnapshot ( entry ) ) ; } CollectionUtil . timSort ( snapshotList ) ; return Collections . unmodifiableList ( snapshotList ) ; }
returns a list of currently running snapshots from repository sorted by snapshot creation date
