Class CyberLocation

  • All Implemented Interfaces:
    java.io.Serializable

    public class CyberLocation
    extends java.lang.Object
    implements java.io.Serializable
    CyberLocation indicates that a location is a cyber location rather than a physical location.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getAddress()
      Return the address for the location.
      int hashCode()
      Return has code based on properties.
      void setAddress​(java.lang.String address)
      Set up address of the location.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CyberLocation

        public CyberLocation()
        Default constructor
      • CyberLocation

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

      • setAddress

        public void setAddress​(java.lang.String address)
        Set up address of the location.
        Parameters:
        address - String
      • getAddress

        public java.lang.String getAddress()
        Return the address for the location.
        Returns:
        String address
      • toString

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

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

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