Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
297e85b379
1 changed files with 9 additions and 0 deletions
|
@ -247,5 +247,14 @@ public class Amenity extends MapObject {
|
|||
setAdditionalInfo(OPENING_HOURS, openingHours);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(MapObject o) {
|
||||
int cmp = super.compareTo(o);
|
||||
if(cmp == 0 && o instanceof Amenity) {
|
||||
return ((Amenity) o).getType().getKeyName().compareTo(getType().getKeyName());
|
||||
}
|
||||
return cmp;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue