code: private String createString(String f)
      {
          StringBuilder sb = new StringBuilder();
          switch (resType)
          {
              case cudaResourceType.cudaResourceTypeArray:
                  sb.append("array="+array_array+f);
                  break;
  
              case  cudaResourceType.cudaResourceTypeMipmappedArray:
                  sb.append("mipmap="+mipmap_mipmap+f);
                  break;
  
              case  cudaResourceType.cudaResourceTypeLinear:
                  sb.append("devPtr="+linear_devPtr+f);
                  sb.append("format="+linear_desc+f);
                  sb.append("sizeInBytes="+linear_sizeInBytes+f);
                  break;
  
              case  cudaResourceType.cudaResourceTypePitch2D:
                  sb.append("devPtr="+pitch2D_devPtr+f);
                  sb.append("format="+pitch2D_desc+f);
                  sb.append("width="+pitch2D_width+f);
                  sb.append("height="+pitch2D_height+f);
                  sb.append("pitchInBytes="+pitch2D_pitchInBytes+f);
                  break;
  
              default:
                  sb.append("INVALID");
          }
          return sb.toString();
      }
docs: Creates and returns a string representation of this object,
  using the given separator for the fields
  
  @param f Separator
  @return A String representation of this object