public class ElectricPotential extends Quantity implements Comparable<ElectricPotential>
| Modifier and Type | Field and Description |
|---|---|
private int |
hashCodeValue
Cached value for hashCode.
|
private static int |
SEED1
Seed for hashCode.
|
private static int |
SEED2
Seed for hashCode.
|
(package private) Unit<ElectricPotential> |
unit
Unit type of this quantity.
|
(package private) Number |
value
Value of this quantity.
|
| Constructor and Description |
|---|
ElectricPotential(Number inValue,
Unit<ElectricPotential> inUnit)
Create an ElectricPotential.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ElectricPotential other)
Check quantities for equality.
|
boolean |
equals(Object other)
Check quantities for equality.
|
int |
hashCode() |
String |
toString() |
Unit<ElectricPotential> |
unit()
Get the unit for this quantity.
|
Number |
value()
Get the numerical value of this quantity.
|
Number |
value(Unit<ElectricPotential> inUnit)
Perform a unit conversion.
|
private static final int SEED1
private static final int SEED2
Number value
Unit<ElectricPotential> unit
private int hashCodeValue
public ElectricPotential(Number inValue, Unit<ElectricPotential> inUnit)
inValue - the value.inUnit - the unit type.public Number value()
Quantitypublic Number value(Unit<ElectricPotential> inUnit)
inUnit - the unit to convert to.public boolean equals(Object other)
public int compareTo(ElectricPotential other)
compareTo in interface Comparable<ElectricPotential>public Unit<ElectricPotential> unit()
QuantityCopyright © 2016 Open Microscopy Environment