Mercurial > hg > semantic-sia
comparison src/org/qmul/eecs/c4dm/sia/model/NDimensionalObject.java @ 47:00ab451e2692
corrected typo in String message for ClassCastException
author | stevenh |
---|---|
date | Tue, 02 Apr 2013 22:49:35 +0100 |
parents | 335959103cf1 |
children |
comparison
equal
deleted
inserted
replaced
46:fa9030705e93 | 47:00ab451e2692 |
---|---|
45 Vector<DimensionValue> ndim2DimVals = ndim2.getDimensionValues(); | 45 Vector<DimensionValue> ndim2DimVals = ndim2.getDimensionValues(); |
46 | 46 |
47 int ndim2DimSize = ndim2DimVals.size(); | 47 int ndim2DimSize = ndim2DimVals.size(); |
48 | 48 |
49 if (ndim2DimSize != this.getDimensionValues().size()) | 49 if (ndim2DimSize != this.getDimensionValues().size()) |
50 throw new ClassCastException("NDimensionalObject have an unequal number of dimensions"); | 50 throw new ClassCastException("NDimensionalObjects have an unequal number of dimensions"); |
51 | 51 |
52 for (int dimension = 1; dimension <= ndim2DimSize; dimension++) | 52 for (int dimension = 1; dimension <= ndim2DimSize; dimension++) |
53 { | 53 { |
54 double dimension1 = 0; | 54 double dimension1 = 0; |
55 try { | 55 try { |