public static boolean anyDimensionHasItems(Collection<DimensionalObject> dimensions){
  if (dimensions == null || dimensions.isEmpty()) {
    return false;
  }
  for (  DimensionalObject dim : dimensions) {
    if (dim.hasItems()) {
      return true;
    }
  }
  return false;
}

public static boolean anyDimensionHasItems ( Collection < DimensionalObject > dimensions ) { if ( dimensions == null || dimensions . isEmpty ( ) ) { return false ; } for ( DimensionalObject dim : dimensions ) { if ( dim . hasItems ( ) ) { return true ; } } return false ; }
indicates whether at least one of the given dimenions has at least one item .
