gnu.math
public class CQuantity extends Quantity implements Externalizable
Constructor Summary | |
---|---|
CQuantity(Complex num, Unit unit) | |
CQuantity(RealNum real, RealNum imag, Unit unit) |
Method Summary | |
---|---|
boolean | isExact() |
boolean | isZero() |
Complex | number() |
void | readExternal(ObjectInput in) |
Unit | unit() |
void | writeExternal(ObjectOutput out) |
Serial Data: Write the complex value (using writeObject) followed by the Unit (also using writeUnit).