public class Dimensions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Dimensions |
Empty
The empty Dimensions that pure numbers have.
|
Modifier and Type | Method and Description |
---|---|
int |
getPower(BaseUnit unit)
Get the exponent for a BaseUnit in this Dimensions object.
|
int |
hashCode() |
static Dimensions |
product(Dimensions a,
int mul_a,
Dimensions b,
int mul_b) |
java.lang.String |
toString() |
public static Dimensions Empty
public final int hashCode()
hashCode
in class java.lang.Object
public static Dimensions product(Dimensions a, int mul_a, Dimensions b, int mul_b)
public int getPower(BaseUnit unit)
public java.lang.String toString()
toString
in class java.lang.Object