org.eclipse.soda.dk.data
Class LongitudeData
java.lang.Object
java.lang.Number
org.eclipse.soda.dk.data.Fraction
org.eclipse.soda.dk.data.Degree
org.eclipse.soda.dk.data.LongitudeData
- All Implemented Interfaces:
- java.io.Serializable, Numeric
public class LongitudeData
- extends Degree
- Version:
- 1.2.0
- See Also:
- Serialized Form
|
Constructor Summary |
LongitudeData(int value)
Constructs an instance of this class from the specified value parameter. |
LongitudeData(java.lang.String value)
Constructs an instance of this class from the specified value parameter. |
|
Method Summary |
boolean |
equals(java.lang.Object compare)
Equals with the specified compare parameter and return the boolean result. |
java.lang.String |
toNmeaString()
Returns the nmea string (String) value. |
java.lang.String |
toString()
Returns the string value. |
| Methods inherited from class org.eclipse.soda.dk.data.Degree |
add, divide, doubleValue, floatValue, getFixedDegree, getThousandSeconds, intDenominator, intNumerator, intValue, longDenominator, longNumerator, longValue, multiply, negate, parse, parseBillionDegree, parseMetarDegree, parseNmeaDegree, reciprocal, subtract, toDegreeString, toNmeaString, toString |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LongitudeData
public LongitudeData(java.lang.String value)
throws java.lang.NumberFormatException
- Constructs an instance of this class from the specified value parameter.
- Parameters:
value - The value (String) parameter.
- Throws:
java.lang.NumberFormatException - Number Format Exception.- See Also:
LongitudeData(int)
LongitudeData
public LongitudeData(int value)
- Constructs an instance of this class from the specified value parameter.
- Parameters:
value - The value (int) parameter.- See Also:
LongitudeData(String)
equals
public boolean equals(java.lang.Object compare)
- Equals with the specified compare parameter and return the boolean result.
- Overrides:
equals in class Degree
- Parameters:
compare - The compare (Object) parameter.
- Returns:
- Results of the equals (
boolean) value. - See Also:
Object.equals(Object)
toNmeaString
public java.lang.String toNmeaString()
- Returns the nmea string (String) value.
- Returns:
- The nmea string (
String) value.
toString
public java.lang.String toString()
- Returns the string value.
- Overrides:
toString in class Degree
- Returns:
- The string (
String) value. - See Also:
toNmeaString()
Copyright (c) 2009 IBM. See license in Legal section.