Java Long Number Create toLong(Object value)

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

Description

to Long

License

Apache License

Declaration

public static long toLong(Object value) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static long toLong(Object value) {
        if (value instanceof Number)
            return ((Number) value).longValue();
        return Long.parseLong(value.toString());
    }//from w ww . j  a v  a  2 s.  c  om
}

Related

  1. toLong(Object property, long defaultValue)
  2. toLong(Object val)
  3. toLong(Object value)
  4. toLong(Object value)
  5. toLong(Object value)
  6. toLong(Object value)
  7. toLong(Object value)
  8. toLong(Object value)
  9. toLong(Object value)