Package com.yahoo.geo

Class ParsedDegree


  • public class ParsedDegree
    extends java.lang.Object
    Utility for holding one geographical coordinate
    Author:
    arnej27959
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double degrees
      the parsed latitude or longitude Degrees north or east if positive Degrees south or west if negative
      boolean isLatitude  
      boolean isLongitude  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParsedDegree​(double value, boolean isLat, boolean isLon)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ParsedDegree fromString​(java.lang.String toParse, boolean assumeLatitude, boolean assumeLongitude)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • degrees

        public final double degrees
        the parsed latitude or longitude Degrees north or east if positive Degrees south or west if negative
      • isLatitude

        public final boolean isLatitude
      • isLongitude

        public final boolean isLongitude
    • Constructor Detail

      • ParsedDegree

        public ParsedDegree​(double value,
                            boolean isLat,
                            boolean isLon)
    • Method Detail

      • fromString

        public static ParsedDegree fromString​(java.lang.String toParse,
                                              boolean assumeLatitude,
                                              boolean assumeLongitude)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object