public class Location extends Object
Constructor and Description |
---|
Location()
Creates a location with no properties set.
|
Location(long id,
String description)
Creates a location.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
long |
getId() |
void |
setDescription(String description)
Sets the description for this location
|
void |
setId(long id)
Sets the id
|
String |
toString() |
public Location(long id, String description)
id
- ID representing the locationdescription
- text displayed describing the locationpublic Location()
public String getDescription()
public long getId()
public String toString()
public void setDescription(String description)
description
- the new description valuepublic void setId(long id)
id
- the new id valueCopyright © 2003-2017 The Virtual Library Team. All Rights Reserved.