public class LocationObject
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
Attribute for slot id.
|
protected Location |
location
The location of the object.
|
Constructor and Description |
---|
LocationObject()
Create a new location object.
|
LocationObject(java.lang.String id,
Location location)
Create a new location object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test if two instances are equal.
|
java.lang.String |
getId()
Get the id of this LocationObject.
|
Location |
getLocation()
Get the location of this LocationObject.
|
int |
hashCode()
Get the hashcode.
|
void |
setId(java.lang.String id)
Set the id of this LocationObject.
|
void |
setLocation(Location location)
Set the location of this LocationObject.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String id
protected Location location
public LocationObject()
public LocationObject(java.lang.String id, Location location)
id
- The id.location
- The location.public java.lang.String getId()
public void setId(java.lang.String id)
id
- the value to be setpublic Location getLocation()
public void setLocation(Location location)
location
- the value to be setpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object