/
Line.java
40 lines (33 loc) · 966 Bytes
/
Line.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package org.openstreetmap.atlas.geography.atlas.items;
import org.openstreetmap.atlas.geography.atlas.Atlas;
/**
* A line that is not navigable
*
* @author matthieun
*/
public abstract class Line extends LineItem
{
private static final long serialVersionUID = 5348604376185677L;
protected Line(final Atlas atlas)
{
super(atlas);
}
@Override
public ItemType getType()
{
return ItemType.LINE;
}
@Override
public String toDiffViewFriendlyString()
{
final String relationsString = this.parentRelationsAsDiffViewFriendlyString();
return "[Line: id=" + this.getIdentifier() + ", polyLine=" + this.asPolyLine()
+ ", relations=(" + relationsString + "), " + tagString() + "]";
}
@Override
public String toString()
{
return "[Line: id=" + this.getIdentifier() + ", polyLine=" + this.asPolyLine() + ", "
+ tagString() + "]";
}
}