예제 #1
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;
    }
  }
예제 #2
0
 int tagCode() {
   if (tag != null) return tag.code();
   return id;
 }