public static boolean replicationGroupHasNoOtherSnapshot(DbClient dbClient,String rgName,Collection<URI> snapshots,URI storage){
  List<BlockSnapshot> snapshotsInRG=getSnapshotsPartOfReplicationGroup(rgName,storage,dbClient);
  List<URI> snapshotURsInRG=newArrayList(transform(snapshotsInRG,fctnDataObjectToID()));
  s_logger.info("Snapshot count in RG: {}, given snapshots count: {}",snapshotsInRG.size(),snapshots.size());
  snapshotURsInRG.removeAll(snapshots);
  return snapshotURsInRG.isEmpty();
}

public static boolean replicationGroupHasNoOtherSnapshot ( DbClient dbClient , String rgName , Collection < URI > snapshots , URI storage ) { List < BlockSnapshot > snapshotsInRG = getSnapshotsPartOfReplicationGroup ( rgName , storage , dbClient ) ; List < URI > snapshotURsInRG = newArrayList ( transform ( snapshotsInRG , fctnDataObjectToID ( ) ) ) ; s_logger . info ( "Snapshot count in RG: {}, given snapshots count: {}" , snapshotsInRG . size ( ) , snapshots . size ( ) ) ; snapshotURsInRG . removeAll ( snapshots ) ; return snapshotURsInRG . isEmpty ( ) ; }
returns true if the replication group has no snapshot other than the given ones .
