Java BigDecimal createReconFileHeader(int totalCount, BigDecimal totalAmount)

Here you can find the source of createReconFileHeader(int totalCount, BigDecimal totalAmount)

Description

create Recon File Header

License

Apache License

Declaration

public static String createReconFileHeader(int totalCount,
            BigDecimal totalAmount) 

Method Source Code

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

import java.math.BigDecimal;

public class Main {
    public static final String SEPERATOR = "|";
    public static final String LINECHANGE = "\n";

    public static String createReconFileHeader(int totalCount,
            BigDecimal totalAmount) {

        StringBuilder sb = new StringBuilder();
        sb.append("0").append(SEPERATOR).append(SEPERATOR)
                .append(totalCount).append(SEPERATOR).append(totalAmount)
                .append(SEPERATOR).append(totalCount).append(SEPERATOR)
                .append(totalAmount).append(LINECHANGE);
        ;//from   w ww .  j  ava  2 s  .  co m

        return sb.toString();

    }
}

Related

  1. bigDecimalPrint(BigDecimal value)
  2. bigDecimalProperty(ObjectNode node, String propertyName, BigDecimal propertyValue)
  3. byteOverflow(BigDecimal value)
  4. cloneBigDecimal(BigDecimal bdOriginal)
  5. createJsonNumber(BigDecimal d)
  6. cuberoot(BigDecimal b)
  7. currencyFormat(BigDecimal value, char decimalDelimiter)
  8. decimalDigits(BigDecimal d)
  9. deserializeBigDecimalFromString(String decimal)