Java Object to Long castToLong(final String uid)

Here you can find the source of castToLong(final String uid)

Description

cast To Long

License

Open Source License

Declaration

public static Long castToLong(final String uid) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Long castToLong(final String uid) {
        try {/*from   w w w  .  ja v  a2  s  .  co m*/
            return Long.decode(uid);
        } catch (NumberFormatException nfe) {
            return null;
        }
    }
}

Related

  1. castLong(Object o)
  2. castLong(Object o)
  3. castLong(Object val)
  4. castLong2Int(long x)
  5. castLongtoUInt(long x)
  6. castToLong(Object object)
  7. castToLong(Object value)
  8. castToLong(Object value)
  9. castToLongArray(Object[] array)