ui/src/main/java/ucar/nc2/ui/gis/shapefile/DbaseData.java
public Object getData(int i) {
    switch (type) {
      case TYPE_CHAR:
        return character[i];
      case TYPE_NUMERIC:
        return numeric[i];
      case TYPE_BOOLEAN:
        return logical[i];
    }
    return null;
  }
public Object getData(int i) {
    switch (type) {
      case TYPE_CHAR:
        return character[i];
      case TYPE_NUMERIC:
        return numeric[i];
      case TYPE_BOOLEAN:
        return logical[i];
    }
    return null;
  }
Method to retrieve data for this field

@param i index of desired String, assumes 0 < i < getNumRec()
@return either a Double, Boolean, or String with the data