|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.Factor
A class that represents a factor in the dimensionality of a unit. A factor is a base unit and a power.
| Field Summary | |
(package private) BaseUnit |
baseUnit
The base unit. |
(package private) int |
power
The power of the base unit. |
| Constructor Summary | |
(package private) |
Factor(BaseUnit baseUnit,
int power)
Construct a factor from a base unit and a power. |
| Method Summary | |
boolean |
equals(Factor factor)
|
boolean |
equals(Object that)
Indicates whether or not this instance is equal to an object. |
int |
hashCode()
Returns the hash code of this instance. |
String |
toString()
Return a string representation of this factor. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
final int power
final BaseUnit baseUnit
| Constructor Detail |
Factor(BaseUnit baseUnit,
int power)
baseUnit - The base unit.power - The power to raise the base unit by.| Method Detail |
public String toString()
public boolean equals(Factor factor)
public boolean equals(Object that)
that - The object in question.
true if and only if this instance
equals the unit.public int hashCode()
Object.hashCode() should be
overridden whenever Object.equals(Object) is.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||