protected void addScalarDimension(int i){
  for (  Dimension dimension : dimensionList) {
    if (dimension.getDimension() == i) {
      return;
    }
  }
  dimensionList.add(new Dimension(i));
}

protected void addScalarDimension ( int i ) { for ( Dimension dimension : dimensionList ) { if ( dimension . getDimension ( ) == i ) { return ; } } dimensionList . add ( new Dimension ( i ) ) ; }
add a dimension object .
