Class Longitude

java.lang.Object
ch.tocco.nice2.types.spi.geolocation.RadianCoordinate
ch.tocco.nice2.types.spi.geolocation.Longitude
All Implemented Interfaces:
Coordinate, Serializable, Comparable<Coordinate>

public class Longitude extends RadianCoordinate
See Also:
  • Constructor Details

  • Method Details

    • getMinValue

      public BigDecimal getMinValue()
      Description copied from class: RadianCoordinate
      Returns the minimum value for this coordinate.
      Specified by:
      getMinValue in class RadianCoordinate
      Returns:
      minimum coordinate value
    • getMaxValue

      public BigDecimal getMaxValue()
      Specified by:
      getMaxValue in class RadianCoordinate
      Returns:
      the maximum value for this coordinate
    • degree

      public static Longitude degree(String degree)
      Creates a longitude object from the specified degree value.

      The argument must be within the longitude value range, which is [-180,180].

      Parameters:
      degree - the longitude degree value
      Returns:
      a Longitude object
    • degree

      public static Longitude degree(BigDecimal degree)
      Creates a longitude object from the specified degree value.

      The argument must be within the longitude value range, which is [-180,180].

      Parameters:
      degree - the longitude degree value
      Returns:
      a Longitude object
    • radian

      public static Longitude radian(String radian)
      Creates a longitude object from the specified radian value.

      The argument must be within the longitude value range, which is [-pi,pi].

      Parameters:
      radian - the longitude radian value
      Returns:
      a Longitude object
    • radian

      public static Longitude radian(BigDecimal radian)
      Creates a longitude object from the specified radian value.

      The argument must be within the longitude value range, which is [-pi,pi].

      Parameters:
      radian - the longitude radian value
      Returns:
      a Longitude object
    • greaterMaximumRange

      public static boolean greaterMaximumRange(BigDecimal value)
    • lowerMinimumRange

      public static boolean lowerMinimumRange(BigDecimal value)
    • isMinimum

      public boolean isMinimum()
    • isMaximum

      public boolean isMaximum()
    • add

      public Longitude add(BigDecimal alpha)
    • toString

      public String toString()
      Overrides:
      toString in class Object