/** * Construct a GeoKey with a single integer value. * @param id GeoKey.Tag number * @param v value */ GeoKey( int id, int v) { this.id = id; this.count = 1; this.tag = GeoKey.Tag.get(id); this.tagValue = TagValue.get(tag, v); if (tagValue == null) { this.value = new int[1]; this.value[0] = v; } }
int value() { if (tagValue != null) return tagValue.value(); return value[0]; }
/** * Construct a GeoKey with a single integer value. * @param id GeoKey.Tag number * @param v value */ GeoKey( int id, int v) { this.id = id; this.count = 1; this.tag = GeoKey.Tag.get(id); this.tagValue = TagValue.get(tag, v); if (tagValue == null) { this.value = new int[1]; this.value[0] = v; } }
/** * Construct a GeoKey with a single integer value. * @param id GeoKey.Tag number * @param v value */ GeoKey( int id, int v) { this.id = id; this.count = 1; this.tag = GeoKey.Tag.get(id); this.tagValue = TagValue.get(tag, v); if (tagValue == null) { this.value = new int[1]; this.value[0] = v; } }
int value() { if (tagValue != null) return tagValue.value(); return value[0]; }
int value() { if (tagValue != null) return tagValue.value(); return value[0]; }