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 Link icon

  • Method Details Link icon

    • getMinValue Link icon

      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 Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      public static boolean greaterMaximumRange(BigDecimal value)
    • lowerMinimumRange Link icon

      public static boolean lowerMinimumRange(BigDecimal value)
    • isMinimum Link icon

      public boolean isMinimum()
    • isMaximum Link icon

      public boolean isMaximum()
    • add Link icon

      public Longitude add(BigDecimal alpha)
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object