|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.domain.v0_5.OsmUser
public class OsmUser
A value class representing a single OSM user, comprised of user name and id. This class is immutable, and the static factories are thread-safe.
| Field Summary | |
|---|---|
static OsmUser |
NONE
The user instance representing no user available or no user applicable. |
| Constructor Summary | |
|---|---|
OsmUser(int id,
java.lang.String userName)
Creates a new instance. |
|
OsmUser(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getId()
|
java.lang.String |
getName()
|
int |
hashCode()
|
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OsmUser NONE
| Constructor Detail |
|---|
public OsmUser(int id,
java.lang.String userName)
id - The userId associated with the user name.userName - The name of the user that this object represents.
public OsmUser(StoreReader sr,
StoreClassRegister scr)
sr - The store to read state from.scr - Maintains the mapping between classes and their identifiers
within the store.| Method Detail |
|---|
public void store(StoreWriter sw,
StoreClassRegister scr)
store in interface Storeablesw - The writer that persists data to an underlying store.scr - Maintains the mapping between classes and their identifiers
within the store.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getId()
public java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||