Here you can find the source of toLong(String value, long _default)
public static long toLong(String value, long _default)
//package com.java2s; //License from project: Apache License public class Main { public static long toLong(String value, long _default) { if (value == null || value.length() == 0) return _default; return Long.valueOf(value); }/* www . ja v a2 s. c om*/ }