private boolean allVolumeSizesMatch(List<Long> currentVolumeSizes){
  List<Long> currentVolumeSizesCopy=new ArrayList<Long>();
  currentVolumeSizesCopy.addAll(currentVolumeSizes);
  for (  Long currentSize : currentVolumeSizes) {
    for (    Long compareSize : currentVolumeSizesCopy) {
      if (currentSize.longValue() != compareSize.longValue()) {
        return false;
      }
    }
  }
  _log.info("All volumes are of the same size. No need for capacity calculations.");
  return true;
}

private boolean allVolumeSizesMatch ( List < Long > currentVolumeSizes ) { List < Long > currentVolumeSizesCopy = new ArrayList < Long > ( ) ; currentVolumeSizesCopy . addAll ( currentVolumeSizes ) ; for ( Long currentSize : currentVolumeSizes ) { for ( Long compareSize : currentVolumeSizesCopy ) { if ( currentSize . longValue ( ) != compareSize . longValue ( ) ) { return false ; } } } _log . info ( "All volumes are of the same size. No need for capacity calculations." ) ; return true ; }
determines if all the passed in volume sizes match
