code: public static long getLong(String pStr) {
          if (isEmpty(pStr)) {
              return 0;
          }
          long value = 0;
          try {
              value = Long.parseLong(pStr);
          } catch (NumberFormatException nm) {
          }
          return value;
      }
docs: Returns the parsed long value for the passed in String.
  
  @param pStr A String value.
  
  @return A long value.
  
  @see Long#parseLong(java.lang.String)