Package ucar.unidata.geoloc
Class LatLonPointImmutable
- java.lang.Object
-
- ucar.unidata.geoloc.LatLonPointImpl
-
- ucar.unidata.geoloc.LatLonPointImmutable
-
- All Implemented Interfaces:
Serializable
,LatLonPoint
@Deprecated @Immutable public class LatLonPointImmutable extends LatLonPointImpl
Deprecated.move to implementation classesAn immutableLatLonPoint
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LatLonPointImmutable
INVALID
Deprecated.-
Fields inherited from class ucar.unidata.geoloc.LatLonPointImpl
lat, lon
-
-
Constructor Summary
Constructors Constructor Description LatLonPointImmutable(double lat, double lon)
Deprecated.LatLonPointImmutable(LatLonPoint pt)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
setLatitude(double lat)
Deprecated.Set the latitude, in degrees.void
setLongitude(double lon)
Deprecated.Set the longitude, in degrees.-
Methods inherited from class ucar.unidata.geoloc.LatLonPointImpl
betweenLon, equals, getClockwiseDistanceTo, getLatitude, getLongitude, hashCode, latNormal, latToString, lonDiff, lonNormal, lonNormal, lonNormal360, lonNormalFrom, lonToString, nearlyEquals, range180, set, set, set, toString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.unidata.geoloc.LatLonPoint
nearlyEquals
-
-
-
-
Field Detail
-
INVALID
public static final LatLonPointImmutable INVALID
Deprecated.
-
-
Constructor Detail
-
LatLonPointImmutable
public LatLonPointImmutable(double lat, double lon)
Deprecated.
-
LatLonPointImmutable
public LatLonPointImmutable(LatLonPoint pt)
Deprecated.
-
-
Method Detail
-
setLongitude
public void setLongitude(double lon) throws UnsupportedOperationException
Deprecated.Description copied from class:LatLonPointImpl
Set the longitude, in degrees. It is normalized to +/-180.- Overrides:
setLongitude
in classLatLonPointImpl
- Parameters:
lon
- east longitude in degrees- Throws:
UnsupportedOperationException
- because instances of this class are meant to be immutable.
-
setLatitude
public void setLatitude(double lat)
Deprecated.Description copied from class:LatLonPointImpl
Set the latitude, in degrees. Must lie beween +/-90- Overrides:
setLatitude
in classLatLonPointImpl
- Parameters:
lat
- north latitude in degrees- Throws:
UnsupportedOperationException
- because instances of this class are meant to be immutable.
-
-