Java Object to Long castLong(Object o)

Here you can find the source of castLong(Object o)

Description

cast Long

License

Open Source License

Declaration

public static Long castLong(Object o) 

Method Source Code

//package com.java2s;

public class Main {
    public static Long castLong(Object o) {
        Long value = null;/* w ww  .  j  a  v a  2 s . c  o m*/
        if (o != null) {
            value = Long.parseLong(o.toString());
        }
        return value;
    }
}

Related

  1. castLong(Object o)
  2. castLong(Object val)
  3. castLong2Int(long x)
  4. castLongtoUInt(long x)