Skip to content

Commit 0c16b91

Browse files
committed
UNITSOFMEASUREMENT-193: What about Dimension.getProductDimensions() ?
Task-Url: https://java.net/jira/browse/UNITSOFMEASUREMENT-193
1 parent f324f1d commit 0c16b91

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/javax/measure/Dimension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @author <a href="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
4747
* @author <a href="mailto:units@catmedia.us">Werner Keil</a>
48-
* @version 0.13, December 6, 2014
48+
* @version 0.14, June 28, 2016
4949
*
5050
* @see <a href="http://en.wikipedia.org/wiki/Dimensional_analysis">Wikipedia: Dimensional Analysis</a>
5151
*/
@@ -89,10 +89,10 @@ public interface Dimension {
8989
Dimension root(int n);
9090

9191
/**
92-
* Returns the fundamental dimensions and their exponent whose product is this dimension, or {@code null} if this dimension is a fundamental
92+
* Returns the (fundamental) base dimensions and their exponent whose product is this dimension, or {@code null} if this dimension is a base
9393
* dimension.
9494
*
9595
* @return the mapping between the fundamental dimensions and their exponent.
9696
*/
97-
Map<? extends Dimension, Integer> getProductDimensions();
97+
Map<? extends Dimension, Integer> getBaseDimensions();
9898
}

src/test/java/javax/measure/test/DimensionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public void testRoot() {
7777

7878
@Test
7979
public void testGetProductDimensions() {
80-
assertNotNull(sut.getProductDimensions());
81-
assertEquals(1, sut.getProductDimensions().size());
80+
assertNotNull(sut.getBaseDimensions());
81+
assertEquals(1, sut.getBaseDimensions().size());
8282
}
8383

8484
}

src/test/java/javax/measure/test/TestDimension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Dimension root(int i) {
6262
return this;
6363
}
6464

65-
public Map<? extends Dimension, Integer> getProductDimensions() {
65+
public Map<? extends Dimension, Integer> getBaseDimensions() {
6666
final Map<Dimension, Integer> products = new HashMap<Dimension, Integer>();
6767
products.put(this, 1);
6868
return products;

0 commit comments

Comments
 (0)