edu.ucla.stat.SOCR.analyses.util.utils
Class PrecDouble

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.util.utils.PrecDouble

public class PrecDouble
extends java.lang.Object

MultiDendrograms

Simplified interface to BigDecimal

Since:
JDK 6.0
Author:
Justo Montiel, David Torres, Sergio Gómez, Alberto Fernández

Constructor Summary
PrecDouble(java.math.BigDecimal num)
           
PrecDouble(java.lang.Double num)
           
PrecDouble(java.lang.Float num)
           
PrecDouble(java.lang.Integer num)
           
PrecDouble(java.lang.String num)
           
 
Method Summary
 void CanviSigne()
           
 PrecDouble clone()
           
 int CompareTo(java.math.BigDecimal num)
           
 int CompareTo(double num)
           
 int CompareTo(int num)
           
 int CompareTo(PrecDouble num)
           
 int CompareTo(java.lang.String num)
           
 void Division(java.math.BigDecimal num)
           
 void Division(double num)
           
 void Division(int num)
           
 void Division(PrecDouble num)
           
 void Division(java.lang.String num)
           
 boolean equals(java.math.BigDecimal num)
           
 boolean equals(double num)
           
 boolean equals(int num)
           
 boolean equals(PrecDouble num)
           
 boolean equals(java.lang.String num)
           
 int getPrecisio()
           
 boolean isMajor(java.math.BigDecimal num)
           
 boolean isMajor(double num)
           
 boolean isMajor(int num)
           
 boolean isMajor(PrecDouble num)
           
 boolean isMajor(java.lang.String num)
           
 boolean isMenor(java.math.BigDecimal num)
           
 boolean isMenor(double num)
           
 boolean isMenor(int num)
           
 boolean isMenor(PrecDouble num)
           
 boolean isMenor(java.lang.String num)
           
 java.math.BigDecimal parserToBigDecimal()
           
 double parserToDouble()
           
 int parserToInteger()
           
 void Plus()
           
 void Pow(int pot)
           
 void Producto(java.math.BigDecimal num)
           
 void Producto(double num)
           
 void Producto(int num)
           
 void Producto(PrecDouble num)
           
 void Producto(java.lang.String num)
           
 void Resta(java.math.BigDecimal num)
           
 void Resta(double num)
           
 void Resta(int num)
           
 void Resta(PrecDouble num)
           
 void Resta(java.lang.String num)
           
 void SetMajor(java.math.BigDecimal num)
           
 void SetMajor(double num)
           
 void SetMajor(int num)
           
 void SetMajor(PrecDouble num)
           
 void SetMajor(java.lang.String num)
           
 void SetMenor(java.math.BigDecimal num)
           
 void SetMenor(double num)
           
 void SetMenor(int num)
           
 void SetMenor(PrecDouble num)
           
 void SetMenor(java.lang.String num)
           
 void SetPositiu()
           
 void setPrecisio(int prec)
           
 void setPrecisio(int prec, java.math.RoundingMode round)
           
 void Suma(java.math.BigDecimal num)
           
 void Suma(double num)
           
 void Suma(int num)
           
 void Suma(PrecDouble num)
           
 void Suma(java.lang.String num)
           
 java.lang.String toPlainString()
           
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String patron)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrecDouble

public PrecDouble(java.lang.String num)

PrecDouble

public PrecDouble(java.lang.Double num)

PrecDouble

public PrecDouble(java.lang.Float num)

PrecDouble

public PrecDouble(java.lang.Integer num)

PrecDouble

public PrecDouble(java.math.BigDecimal num)
Method Detail

Suma

public void Suma(java.math.BigDecimal num)

Suma

public void Suma(PrecDouble num)

Suma

public void Suma(int num)

Suma

public void Suma(double num)

Suma

public void Suma(java.lang.String num)

Resta

public void Resta(java.math.BigDecimal num)

Resta

public void Resta(PrecDouble num)

Resta

public void Resta(int num)

Resta

public void Resta(double num)

Resta

public void Resta(java.lang.String num)

Producto

public void Producto(java.math.BigDecimal num)

Producto

public void Producto(PrecDouble num)

Producto

public void Producto(int num)

Producto

public void Producto(double num)

Producto

public void Producto(java.lang.String num)

Division

public void Division(java.math.BigDecimal num)

Division

public void Division(PrecDouble num)

Division

public void Division(int num)

Division

public void Division(double num)

Division

public void Division(java.lang.String num)

Pow

public void Pow(int pot)

Plus

public void Plus()

CanviSigne

public void CanviSigne()

SetPositiu

public void SetPositiu()

SetMajor

public void SetMajor(java.math.BigDecimal num)

SetMajor

public void SetMajor(PrecDouble num)

SetMajor

public void SetMajor(double num)

SetMajor

public void SetMajor(int num)

SetMajor

public void SetMajor(java.lang.String num)

SetMenor

public void SetMenor(java.math.BigDecimal num)

SetMenor

public void SetMenor(PrecDouble num)

SetMenor

public void SetMenor(double num)

SetMenor

public void SetMenor(int num)

SetMenor

public void SetMenor(java.lang.String num)

equals

public boolean equals(java.math.BigDecimal num)

equals

public boolean equals(PrecDouble num)

equals

public boolean equals(int num)

equals

public boolean equals(double num)

equals

public boolean equals(java.lang.String num)

CompareTo

public int CompareTo(java.math.BigDecimal num)

CompareTo

public int CompareTo(PrecDouble num)

CompareTo

public int CompareTo(int num)

CompareTo

public int CompareTo(double num)

CompareTo

public int CompareTo(java.lang.String num)

isMenor

public boolean isMenor(java.math.BigDecimal num)

isMenor

public boolean isMenor(PrecDouble num)

isMenor

public boolean isMenor(int num)

isMenor

public boolean isMenor(double num)

isMenor

public boolean isMenor(java.lang.String num)

isMajor

public boolean isMajor(java.math.BigDecimal num)

isMajor

public boolean isMajor(PrecDouble num)

isMajor

public boolean isMajor(int num)

isMajor

public boolean isMajor(double num)

isMajor

public boolean isMajor(java.lang.String num)

parserToDouble

public double parserToDouble()

parserToInteger

public int parserToInteger()

parserToBigDecimal

public java.math.BigDecimal parserToBigDecimal()

setPrecisio

public void setPrecisio(int prec)

setPrecisio

public void setPrecisio(int prec,
                        java.math.RoundingMode round)

getPrecisio

public int getPrecisio()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toPlainString

public java.lang.String toPlainString()

toString

public java.lang.String toString(java.lang.String patron)

clone

public PrecDouble clone()
Overrides:
clone in class java.lang.Object