Changeset 4431 in josm for trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
- Timestamp:
- 2011-09-17T10:59:32+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r4150 r4431 17 17 18 18 public abstract class AbstractPrimitive implements IPrimitive { 19 19 20 20 private static final AtomicLong idCounter = new AtomicLong(0); 21 21 … … 305 305 } 306 306 } 307 307 308 308 /** 309 309 * Marks this primitive as being modified. … … 373 373 return (flags & FLAG_VISIBLE) != 0; 374 374 } 375 375 376 376 /** 377 377 * Sets whether this primitive is visible, i.e. whether it is known on the server … … 414 414 return (flags & FLAG_INCOMPLETE) != 0; 415 415 } 416 416 417 417 protected String getFlagsAsString() { 418 418 StringBuilder builder = new StringBuilder(); … … 528 528 } 529 529 } 530 530 531 531 /** 532 532 * Remove the given key from the list … … 589 589 } 590 590 591 public final String getIgnoreCase(String key) { 592 String[] keys = this.keys; 593 if (key == null) 594 return null; 595 if (keys == null) 596 return null; 597 for (int i=0; i<keys.length;i+=2) { 598 if (keys[i].equalsIgnoreCase(key)) return keys[i+1]; 599 } 600 return null; 601 } 602 591 603 @Override 592 604 public final Collection<String> keySet() { … … 642 654 */ 643 655 abstract protected void keysChangedImpl(Map<String, String> originalKeys); 644 656 645 657 /** 646 658 * Replies the name of this primitive. The default implementation replies the value … … 680 692 return getName(); 681 693 } 682 683 /**684 * Replies the display name of a primitive formatted by <code>formatter</code>685 *686 * @return the display name687 */688 @Override689 public abstract String getDisplayName(NameFormatter formatter);690 694 691 695 }
Note:
See TracChangeset
for help on using the changeset viewer.
