source: josm/trunk/src/org/openstreetmap/josm/data/osm/PrimitiveId.java@ 11461

Last change on this file since 11461 was 8419, checked in by Don-vip, 9 years ago

Sonar: various code style cleanup:

  • fix copyright
  • classes that should be final
  • order of javadoc At-clauses
  • unexpected spaces before parenthesis
  • Property svn:eol-style set to native
File size: 749 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5* interface to represent identifaction and type of the datatypes primitives.
6*
7* @since 2399
8*/
9public interface PrimitiveId {
10
11 /**
12 * Gets a unique id representing this object (the OSM server id for OSM objects)
13 *
14 * @return the id number
15 */
16 long getUniqueId();
17
18 /**
19 * Gets the type of object represented by this object.
20 *
21 * @return the object type
22 * @see Node
23 * @see Way
24 * @see Relation
25 */
26 OsmPrimitiveType getType();
27
28 /**
29 * Replies true if this id represents a new primitive.
30 *
31 * @return true if this id represents a new primitive.
32 */
33 boolean isNew();
34
35}
Note: See TracBrowser for help on using the repository browser.