Ignore:
Timestamp:
2016-11-30T01:57:13+01:00 (7 years ago)
Author:
Don-vip
Message:

javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/UserInfo.java

    r8510 r11349  
    77import org.openstreetmap.josm.data.coor.LatLon;
    88
     9/**
     10 * Public user information.
     11 * @since 2115
     12 */
    913public class UserInfo {
    1014    /** the user id */
     
    3236    }
    3337
     38    /**
     39     * Returns the user identifier.
     40     * @return the user identifier
     41     */
    3442    public int getId() {
    3543        return id;
    3644    }
    3745
     46    /**
     47     * Sets the user identifier.
     48     * @param id the user identifier
     49     */
    3850    public void setId(int id) {
    3951        this.id = id;
    4052    }
    4153
     54    /**
     55     * Returns the display name.
     56     * @return the display name
     57     */
    4258    public String getDisplayName() {
    4359        return displayName;
    4460    }
    4561
     62    /**
     63     * Sets the display name.
     64     * @param displayName display name
     65     */
    4666    public void setDisplayName(String displayName) {
    4767        this.displayName = displayName;
    4868    }
    4969
     70    /**
     71     * Returns the date at which the account has been created.
     72     * @return the user account creation date
     73     */
    5074    public Date getAccountCreated() {
    5175        return accountCreated;
    5276    }
    5377
     78    /**
     79     * Sets the date at which the account has been created.
     80     * @param accountCreated user account creation date
     81     */
    5482    public void setAccountCreated(Date accountCreated) {
    5583        this.accountCreated = accountCreated;
    5684    }
    5785
     86    /**
     87     * Returns the user home coordinates, if set.
     88     * @return the user home lat/lon or null
     89     */
    5890    public LatLon getHome() {
    5991        return home;
    6092    }
    6193
     94    /**
     95     * Sets the user home coordinates.
     96     * @param home user home lat/lon or null
     97     */
    6298    public void setHome(LatLon home) {
    6399        this.home = home;
    64100    }
    65101
     102    /**
     103     * Returns the public account description.
     104     * @return the public account description
     105     */
    66106    public String getDescription() {
    67107        return description;
    68108    }
    69109
     110    /**
     111     * Sets the public account description.
     112     * @param description public account description
     113     */
    70114    public void setDescription(String description) {
    71115        this.description = description;
    72116    }
    73117
     118    /**
     119     * Returns the list of preferred languages.
     120     * @return the list of preferred languages
     121     */
    74122    public List<String> getLanguages() {
    75123        return languages;
    76124    }
    77125
     126    /**
     127     * Sets the list of preferred languages.
     128     * @param languages list of preferred languages
     129     */
    78130    public void setLanguages(List<String> languages) {
    79131        this.languages = languages;
    80132    }
    81133
     134    /**
     135     * Returns the user home zoom level.
     136     * @return the user home zoom level
     137     */
    82138    public int getHomeZoom() {
    83139        return homeZoom;
    84140    }
    85141
     142    /**
     143     * Sets the user home zoom level.
     144     * @param homeZoom user home zoom level
     145     */
    86146    public void setHomeZoom(int homeZoom) {
    87147        this.homeZoom = homeZoom;
Note: See TracChangeset for help on using the changeset viewer.