|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.eclipse.soda.dk.data.Fraction
org.eclipse.soda.dk.data.Degree
public class Degree
The Degree data class handles a degree value.
| Field Summary | |
|---|---|
static int |
DENOMINATOR
Define the denominator (int) constant. |
static double |
DOUBLE_DENOMINATOR
Define the double denominator (double) constant. |
static float |
FLOAT_DENOMINATOR
Define the float denominator (float) constant. |
static int |
SECONDS_PER_DEGREE
Define the seconds per degree (int) constant. |
static long |
SECONDS_PER_DEGREE_LONG
Define the seconds per degree long (long) constant. |
static int |
THOUSAND
Define the thousand (int) constant. |
| Constructor Summary | |
|---|---|
Degree(int thousandSeconds)
Degree constructor with specified degree in billons of seconds. |
|
Degree(int degrees,
int minutes,
int seconds)
Degree constructor with specified degree billons. |
|
Degree(java.lang.String value)
Degree constructor with specified degree string value. |
|
| Method Summary | |
|---|---|
java.lang.Number |
add(java.lang.Number value)
Perform the add method and return the Number result. |
java.lang.Number |
divide(java.lang.Number value)
Perform the divide method and return the Number result. |
double |
doubleValue()
|
boolean |
equals(java.lang.Object compare)
|
float |
floatValue()
|
int |
getFixedDegree()
Method getFixedDegree. |
int |
getThousandSeconds()
Method getThousandSeconds. |
int |
intDenominator()
Perform the intDenominator method and return the int result. |
int |
intNumerator()
Perform the intNumerator method and return the int result. |
int |
intValue()
|
long |
longDenominator()
Perform the longDenominator method and return the long result. |
long |
longNumerator()
Perform the longNumerator method and return the long result. |
long |
longValue()
|
java.lang.Number |
multiply(java.lang.Number value)
Perform the multiply method and return the Number result. |
java.lang.Number |
negate()
Negate and return the Number result. |
static long |
parse(java.lang.String value)
Parse with the specified value parameter and return the long result. |
static int |
parseBillionDegree(java.lang.String value)
Parse billion degree with the specified value parameter and return the int result. |
static int |
parseMetarDegree(java.lang.String value)
Parse metar degree with the specified value parameter and return the int result. |
static int |
parseNmeaDegree(java.lang.String value)
Parse nmea degree with the specified value parameter and return the int result. |
java.lang.Number |
reciprocal()
Reciprocal and return the Number result. |
java.lang.Number |
subtract(java.lang.Number value)
Perform the subtract method and return the Number result. |
static java.lang.String |
toDegreeString(int value,
java.lang.String additions)
To degree string with the specified value and additions parameters and return the String result. |
java.lang.String |
toString()
|
static java.lang.String |
toString(int value)
Method toString. |
| Methods inherited from class org.eclipse.soda.dk.data.Fraction |
|---|
hashCode |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int THOUSAND
public static final int SECONDS_PER_DEGREE
public static final long SECONDS_PER_DEGREE_LONG
public static final int DENOMINATOR
public static final float FLOAT_DENOMINATOR
public static final double DOUBLE_DENOMINATOR
| Constructor Detail |
|---|
public Degree(java.lang.String value)
throws java.lang.NumberFormatException
value - The value (String) parameter.
java.lang.NumberFormatException - Number Format Exception.Degree(int),
Degree(int,int,int),
parseBillionDegree(String),
parseMetarDegree(String),
parseNmeaDegree(String),
getFixedDegree()public Degree(int thousandSeconds)
thousandSeconds - degree in thousands of secondsDegree(String),
Degree(int,int,int),
parseBillionDegree(String),
parseMetarDegree(String),
parseNmeaDegree(String),
getFixedDegree()
public Degree(int degrees,
int minutes,
int seconds)
degrees - degreeminutes - The minutes (int) parameter.seconds - The seconds (int) parameter.Degree(String),
Degree(int),
parseBillionDegree(String),
parseMetarDegree(String),
parseNmeaDegree(String),
getFixedDegree()| Method Detail |
|---|
public static long parse(java.lang.String value)
throws java.lang.NumberFormatException
value - The value (String) parameter.
long) value.
java.lang.NumberFormatException - Number Format Exception.
public static int parseBillionDegree(java.lang.String value)
throws java.lang.NumberFormatException
value - The value (String) parameter.
int) value.
java.lang.NumberFormatException - Number Format Exception.
public static int parseMetarDegree(java.lang.String value)
throws java.lang.NumberFormatException
value - The value (String) parameter.
int) value.
java.lang.NumberFormatException - Number Format Exception.
public static int parseNmeaDegree(java.lang.String value)
throws java.lang.NumberFormatException
value - The value (String) parameter.
int) value.
java.lang.NumberFormatException - Number Format Exception.
public static java.lang.String toDegreeString(int value,
java.lang.String additions)
value - The value (int) parameter.additions - The additions (String) parameter.
String) value.public static java.lang.String toString(int value)
value - The value (int) parameter.
String) value.toDegreeString(int,String),
toString()public java.lang.Number add(java.lang.Number value)
FractionNumber result.
add in interface Numericadd in class Fractionvalue - The value (Number) parameter.
Number) value.Numeric.add(Number)public java.lang.Number divide(java.lang.Number value)
FractionNumber result.
divide in interface Numericdivide in class Fractionvalue - The value (Number) parameter.
Number) value.Numeric.divide(Number)public double doubleValue()
doubleValue in class java.lang.Numberdouble) value.Number.doubleValue(),
floatValue(),
intValue(),
longValue()public boolean equals(java.lang.Object compare)
equals in class java.lang.Objectcompare - The compare (Object) parameter.
boolean) value.Object.equals(Object)public float floatValue()
floatValue in class java.lang.Numberfloat) value.Number.floatValue(),
doubleValue(),
intValue(),
longValue()public int getFixedDegree()
public int getThousandSeconds()
int) value.public int intDenominator()
Fractionint result.
intDenominator in class Fractionint) value.Fraction.intDenominator(),
longDenominator()public int intNumerator()
Fractionint result.
intNumerator in class Fractionint) value.Fraction.intNumerator(),
longNumerator()public int intValue()
intValue in class java.lang.Numberint) value.Number.intValue(),
doubleValue(),
floatValue(),
longValue()public long longDenominator()
Fractionlong result.
longDenominator in class Fractionlong) value.Fraction.longDenominator(),
intDenominator()public long longNumerator()
Fractionlong result.
longNumerator in class Fractionlong) value.Fraction.longNumerator(),
intNumerator()public long longValue()
longValue in class java.lang.Numberlong) value.Number.longValue(),
doubleValue(),
floatValue(),
intValue()public java.lang.Number multiply(java.lang.Number value)
FractionNumber result.
multiply in interface Numericmultiply in class Fractionvalue - The value (Number) parameter.
Number) value.Numeric.multiply(Number)public java.lang.Number negate()
Numeric
Number) value.Numeric.negate()public java.lang.Number reciprocal()
Numeric
Number) value.Numeric.reciprocal()public java.lang.Number subtract(java.lang.Number value)
FractionNumber result.
subtract in interface Numericsubtract in class Fractionvalue - The value (Number) parameter.
Number) value.Numeric.subtract(Number)public java.lang.String toString()
toString in class java.lang.ObjectString) value.Object.toString(),
toDegreeString(int,String),
toString(int)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||