Ignore:
Timestamp:
2009-08-07T23:22:31+02:00 (17 years ago)
Author:
jttt
Message:

Made OsmPrimitive.keys deprecated, removed remaining references in JOSM

File:
1 edited

Legend:

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

    r1899 r1924  
    236236    /**
    237237     * The key/value list for this primitive.
    238      */
     238     * @deprecated This field will became private or protected in future, use api instead
     239     */
     240    @Deprecated
    239241    public Map<String, String> keys;
     242
     243    /**
     244     *
     245     * @return Keys of this primitive. Changes made in returned map are not mapped
     246     * back to the primitive, use setKeys() to modify the keys
     247     * @since 1924
     248     */
     249    public Map<String, String> getKeys() {
     250        // TODO More effective map
     251        return new HashMap<String, String>(keys);
     252    }
     253
     254    /**
     255     *
     256     * @since 1924
     257     */
     258    public void setKeys(Map<String, String> keys) {
     259        if (keys == null) {
     260            this.keys = null;
     261        } else {
     262            this.keys = new HashMap<String, String>(keys);
     263        }
     264    }
    240265
    241266    /**
     
    269294
    270295    /**
    271      * Added in revision 1843
    272      * Please do not use in plug-ins until this version becomes JOSM tested
     296     *
     297     * @since 1843
    273298     */
    274299    public final void removeAll() {
     
    294319
    295320    /**
    296      * Added in revision 1843
    297      * Please do not use in plug-ins until this version becomes JOSM tested
     321     *
     322     * @since 1843
    298323     */
    299324    public final boolean hasKeys() {
Note: See TracChangeset for help on using the changeset viewer.