shared
Class StandardUserExtended
java.lang.Object
shared.StandardUserExtended
- All Implemented Interfaces:
- java.io.Serializable
public class StandardUserExtended
- extends java.lang.Object
- implements java.io.Serializable
extends the StandardUser to include the online status and distance from another user.
- Since:
- 1.5
- Version:
- %I%, %G%
- Author:
- Karl Tschetschonig
- See Also:
- Serialized Form
- Matrikelnummer:
- 0525983
- Studienkennzahl:
- 033 526
|
Constructor Summary |
StandardUserExtended(StandardUser user,
float distance,
java.lang.String distanceUnit,
boolean isOnline)
constructs a new StandardUser including distance and onlinestate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardUserExtended
public StandardUserExtended(StandardUser user,
float distance,
java.lang.String distanceUnit,
boolean isOnline)
- constructs a new StandardUser including distance and onlinestate
- Parameters:
user - references to the userdistance - value of distance to userdistanceUnit - unit of distance(KM, MI)isOnline - is the user online or not
getUser
public StandardUser getUser()
- Returns:
- the user
getDistance
public float getDistance()
- Returns:
- the distance
getDistanceUnit
public java.lang.String getDistanceUnit()
- Returns:
- the distance unit
isOnline
public boolean isOnline()
- Returns:
- the online state