private static final class ProductUnit.Element
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private int |
pow
Holds the power exponent.
|
private int |
root
Holds the root exponent.
|
private static long |
serialVersionUID |
private javax.measure.Unit<?> |
unit
Holds the single unit.
|
Modifier | Constructor and Description |
---|---|
private |
Element(javax.measure.Unit<?> unit,
int pow,
int root)
Structural constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getPow()
Returns the power exponent.
|
int |
getRoot()
Returns the root exponent.
|
javax.measure.Unit<?> |
getUnit()
Returns this element's unit.
|
int |
hashCode() |
private static final long serialVersionUID
private final javax.measure.Unit<?> unit
private final int pow
private final int root
private Element(javax.measure.Unit<?> unit, int pow, int root)
unit
- the unit.pow
- the power exponent.root
- the root exponent.public javax.measure.Unit<?> getUnit()
public int getPow()
public int getRoot()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object