Skip to content

Commit

Permalink
UNITSOFMEASUREMENT-193: What about Dimension.getProductDimensions() ?
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Jun 28, 2016
1 parent 6f5c85a commit 3676ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tec/uom/impl/enums/DimensionalModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected DimensionalModel() {
* @return <code>this</code> or a rational product of fundamental dimension.
*/
public Dimension getFundamentalDimension(Dimension dimension) {
Map<? extends Dimension, Integer> dimensions = dimension.getProductDimensions();
Map<? extends Dimension, Integer> dimensions = dimension.getBaseDimensions();
if (dimensions == null) return dimension; // Fundamental dimension.
// Dimensional Product.
Dimension fundamentalProduct = SimpleDimension.INSTANCE;
Expand All @@ -147,7 +147,7 @@ public Dimension getFundamentalDimension(Dimension dimension) {
* @return the dimensional transform (identity for fundamental dimensions).
*/
public AbstractConverter getDimensionalTransform(Dimension dimension) {
Map<? extends Dimension, Integer> dimensions = dimension.getProductDimensions();
Map<? extends Dimension, Integer> dimensions = dimension.getBaseDimensions();
if (dimensions == null) return AbstractConverter.IDENTITY; // Fundamental dimension.
// Dimensional Product.
AbstractConverter toFundamental = AbstractConverter.IDENTITY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Dimension root(int i) {
}


public Map<? extends Dimension, Integer> getProductDimensions() {
public Map<? extends Dimension, Integer> getBaseDimensions() {
Map<Dimension, Integer> products = new HashMap<Dimension, Integer>();
products.put(this, Integer.valueOf(1));
return products;
Expand Down

0 comments on commit 3676ab6

Please sign in to comment.