/** * 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 tagCode() { if (tag != null) return tag.code(); return id; }