|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttriptracker.core.Route
public class Route
Route represents a stored route on the server with a route ID, user ID and description. Data in a Route object is immutable.
Constructor Summary | |
---|---|
Route(int routeId)
|
|
Route(int routeId,
int userId,
String description)
|
|
Route(int routeId,
int userId,
String description,
boolean active,
boolean visible,
Date date)
|
|
Route(int routeId,
int userId,
String description,
boolean active,
Date date)
|
Method Summary | |
---|---|
String |
getDescription()
|
Date |
getLastUpdate()
Returns the date and time of the last |
String |
getLastUpdateString()
|
int |
getRouteId()
|
int |
getUserId()
|
boolean |
getVisible()
|
boolean |
isActive()
Returns the active state of the route. |
void |
setActive(boolean active)
Set route state to activated or deactivated. |
void |
setVisible(boolean visibility)
Set the visibility of the route to other clients. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Route(int routeId)
public Route(int routeId, int userId, String description)
public Route(int routeId, int userId, String description, boolean active, Date date)
public Route(int routeId, int userId, String description, boolean active, boolean visible, Date date)
Method Detail |
---|
public String getDescription()
public int getRouteId()
public int getUserId()
public String getLastUpdateString()
public Date getLastUpdate()
public boolean isActive()
public void setActive(boolean active)
active
- true to activate, false to deactivatepublic boolean getVisible()
public void setVisible(boolean visibility)
visibility
- public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |