Class CyberLocation

  • All Implemented Interfaces:
    Serializable

    public class CyberLocation
    extends Object
    implements Serializable
    CyberLocation indicates that a location is a cyber location rather than a physical location.
    See Also:
    Serialized Form
    • 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​(String address)
        Set up address of the location.
        Parameters:
        address - String
      • getAddress

        public String getAddress()
        Return the address for the location.
        Returns:
        String address
      • 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 hash code based on properties.
        Overrides:
        hashCode in class Object
        Returns:
        int