protected void checkDimensions() throws Exception {
  if (getFilters().length != getRanges().length) {
    throw new IllegalArgumentException("Number of filters (= " + getFilters().length + ") "+ "and ranges (= "+ getRanges().length+ ") don't match!");
  }
}

protected void checkDimensions ( ) throws Exception { if ( getFilters ( ) . length != getRanges ( ) . length ) { throw new IllegalArgumentException ( "Number of filters (= " + getFilters ( ) . length + ") " + "and ranges (= " + getRanges ( ) . length + ") don't match!" ) ; } }
checks whether the dimensions of filters and ranges fit together .
