Here you can find the source of toLongDefaultIfNull(Long configured, long theDefault)
public static long toLongDefaultIfNull(Long configured, long theDefault)
//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*/ }