Android String to Long Convert toLong(String value)

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

Description

to Long

License

Open Source License

Declaration

public final static long toLong(String value) 

Method Source Code


public class Main{
    public final static long toLong(String value) {
        try {/*  ww  w  .j a  v a 2 s .c o  m*/
            return Long.parseLong(value);
        } catch (Exception e) {
            Debug.warning(e);
        }
        return 0;
    }
}

Related

  1. getLongValue(String value, Long defaultValue)
  2. toLong(String obj)
  3. isLong(String str)
  4. getLongValue(String str)
  5. stringToListLong(String input)
  6. toLong(String str, long defValue)
  7. parseLong(String string, long defValue)
  8. convertStringToLong(String str, long failValue)
  9. stringToLong(String input)