hanbai_kanri.data
クラス SalesSummary

java.lang.Object
  |
  +--hanbai_kanri.data.SalesSummary

public class SalesSummary
extends java.lang.Object

売り上げの集計を行うクラス


コンストラクタの概要
SalesSummary()
           
 
メソッドの概要
static int[] summaryByItem(Sales[] salesList)
          商品ごとの売り上げ金額を集計する
static int[] summaryByMonth(Sales[] salesList)
          月ごとの売り上げ金額を集計する
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SalesSummary

public SalesSummary()
メソッドの詳細

summaryByMonth

public static int[] summaryByMonth(Sales[] salesList)
月ごとの売り上げ金額を集計する

パラメータ:
salesList - 売り上げデータ
戻り値:
月ごとの売り上げ金額集計データ

summaryByItem

public static int[] summaryByItem(Sales[] salesList)
商品ごとの売り上げ金額を集計する

パラメータ:
salesList - 売り上げデータ
戻り値:
商品ごとの売り上げ金額集計データ