Java Long Number Create toLong(String value, long _default)

Here you can find the source of toLong(String value, long _default)

Description

to Long

License

Apache License

Declaration

public static long toLong(String value, long _default) 

Method Source Code

//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*/
}

Related

  1. toLong(String value)
  2. toLong(String value)
  3. toLong(String value)
  4. toLong(String value)
  5. toLong(String value)
  6. toLong(String value, long def)
  7. toLong(String value, long defaultValue)
  8. toLong(String value, Long defaultValue)
  9. toLong(String value, Long defaultValue)