Here you can find the source of tryParseLong(String longValue)
private static Object tryParseLong(String longValue)
//package com.java2s; //License from project: Open Source License public class Main { private static Object tryParseLong(String longValue) { Object parsedValue;/* w w w.j ava 2s.c o m*/ try { parsedValue = Long.parseLong(longValue); } catch (NumberFormatException nfe) { parsedValue = longValue; } return parsedValue; } }