Java Long Number From toLongDefaultIfNull(Long configured, long theDefault)

Here you can find the source of toLongDefaultIfNull(Long configured, long theDefault)

Description

to Long Default If Null

License

Apache License

Declaration

public static long toLongDefaultIfNull(Long configured, long theDefault) 

Method Source Code

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

public class Main {
    public static long toLongDefaultIfNull(Long configured, long theDefault) {
        return configured != null ? configured.longValue() : theDefault;
    }/*from   w  w w  .  j  a v  a 2s.c o  m*/
}

Related

  1. longFromObject(Object o)
  2. toLongAsObject(Object obj)
  3. toLongBE(byte[] b, int i)
  4. toLongBE(byte[] src, int offset)
  5. toLongDate()
  6. toLongExactWithoutOverflow(float value)
  7. toLongId(Integer i)
  8. toLongInt(byte[] b)
  9. toLongitude(long fsuipcLongitude)