Code example for BigInteger

Methods: longValue

0
     *            : time in seconds 
     * @return formatted string representing the value of length. 
     */ 
    private String getFormattedLength(BigInteger length) {
        if (length != null) {
            return String.format(" - %d min, %d sec", TimeUnit.SECONDS.toMinutes(length.longValue()),
                    length.longValue() - TimeUnit.MINUTES.toSeconds(TimeUnit.SECONDS.toMinutes(length.longValue())));
        } else { 
            return ""; 
        } 
    } 
 
    /** 
     * Utility Class ViewHolder. 
     */ 
    private class ViewHolder { 
 
        /** The top text. */ 
        TextView topText;
 
        /** The bottom text. */