public class OSMLevel extends Object implements Comparable<OSMLevel>
Modifier and Type | Class and Description |
---|---|
static class |
OSMLevel.Source |
Modifier and Type | Field and Description |
---|---|
double |
altitudeMeters |
static OSMLevel |
DEFAULT |
int |
floorNumber |
String |
longName |
static double |
METERS_PER_FLOOR |
static Pattern |
RANGE_PATTERN |
boolean |
reliable |
String |
shortName |
OSMLevel.Source |
source |
Constructor and Description |
---|
OSMLevel(int floorNumber,
double altitudeMeters,
String shortName,
String longName,
OSMLevel.Source source,
boolean reliable) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OSMLevel other) |
boolean |
equals(Object other) |
static List<OSMLevel> |
fromSpecList(String specList,
OSMLevel.Source source,
boolean incrementNonNegative) |
static OSMLevel |
fromString(String spec,
OSMLevel.Source source,
boolean incrementNonNegative)
makes an OSMLevel from one of the semicolon-separated fields in an OSM
level map relation's levels= tag.
|
int |
hashCode() |
static Map<String,OSMLevel> |
mapFromSpecList(String specList,
OSMLevel.Source source,
boolean incrementNonNegative) |
public static final Pattern RANGE_PATTERN
public static final double METERS_PER_FLOOR
public static final OSMLevel DEFAULT
public final int floorNumber
public final double altitudeMeters
public final String shortName
public final String longName
public final OSMLevel.Source source
public final boolean reliable
public OSMLevel(int floorNumber, double altitudeMeters, String shortName, String longName, OSMLevel.Source source, boolean reliable)
public static OSMLevel fromString(String spec, OSMLevel.Source source, boolean incrementNonNegative)
public static List<OSMLevel> fromSpecList(String specList, OSMLevel.Source source, boolean incrementNonNegative)
public static Map<String,OSMLevel> mapFromSpecList(String specList, OSMLevel.Source source, boolean incrementNonNegative)
public int compareTo(OSMLevel other)
compareTo
in interface Comparable<OSMLevel>
Copyright © 2018. All rights reserved.