Class FixedLocation

    • Constructor Detail

      • FixedLocation

        public FixedLocation()
        Default constructor
      • FixedLocation

        public FixedLocation​(FixedLocation template)
        Copy/clone constructor.
        Parameters:
        template - template object to copy.
    • Method Detail

      • setCoordinates

        public void setCoordinates​(String coordinates)
        Set up coordinates of the location.
        Parameters:
        coordinates - String
      • getCoordinates

        public String getCoordinates()
        Return the coordinates for the location.
        Returns:
        String coordinates
      • getMapProjection

        public String getMapProjection()
        Return the name of the map projection scheme used to define the coordinates.
        Returns:
        string name
      • setMapProjection

        public void setMapProjection​(String mapProjection)
        Set up the name of the map projection scheme used to define the coordinates.
        Parameters:
        mapProjection - string name
      • setPostalAddress

        public void setPostalAddress​(String postalAddress)
        Set up postal address of the location.
        Parameters:
        postalAddress - String
      • getPostalAddress

        public String getPostalAddress()
        Return the postal address for the location.
        Returns:
        String postalAddress
      • setTimeZone

        public void setTimeZone​(String timeZone)
        Set up the time zone of the location.
        Parameters:
        timeZone - string
      • getTimeZone

        public String getTimeZone()
        Returns the time zone of the location.
        Returns:
        string
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return has code based on properties.
        Overrides:
        hashCode in class Object
        Returns:
        int