Java Month getMonthCountByBillMode(String billMode)

Here you can find the source of getMonthCountByBillMode(String billMode)

Description

Description Get month count by bill mode.

License

Open Source License

Parameter

Parameter Description
billMode a parameter

Declaration

public static Integer getMonthCountByBillMode(String billMode) 

Method Source Code

//package com.java2s;

public class Main {
    /**/* w  w w .  ja va2  s .c om*/
     * Description Get month count by bill mode.
     * 
     * @param billMode
     * @return
     */
    public static Integer getMonthCountByBillMode(String billMode) {
        Integer monthCount = null;
        if ("Y".equals(billMode) || "A".equals(billMode)) {
            monthCount = 12;
        } else if ("S".equals(billMode)) {
            monthCount = 6;
        } else if ("Q".equals(billMode)) {
            monthCount = 3;
        } else if ("M".equals(billMode)) {
            monthCount = 1;
        }
        return monthCount;
    }
}

Related

  1. getFrontMonth(String month)
  2. getMonthBegin(String strdate)
  3. getMonthBeginByMonth(String month)
  4. getMonthBetween(String strDate, int intDiff)
  5. getMonthByDate(String yyyyMMdd)
  6. getMonthDescription(int month)
  7. getMonthDiff(String startDate, String endDate)
  8. getMonthEnd(String strdate)
  9. getMonthFromDate(String date)