クラス Customer

java.lang.Object
  上位を拡張 Customer

public class Customer
extends Object

顧客

作成者:
kaiya

フィールドの概要
private  String name
           
private  HashSet<Product> records
          自分が過去の買った商品の集合.
 
コンストラクタの概要
Customer()
           
Customer(String s)
           
 
メソッドの概要
 void addRecord(Product p)
          まぁ getRecordsがあるので,いらないのだけど・・・一応.
 String getName()
           
 HashSet<Product> getRecords()
           
 void setName(String name)
           
 void setRecords(HashSet<Product> records)
           
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

name

private String name

records

private HashSet<Product> records
自分が過去の買った商品の集合. 最低限実装なので,単に種類の累積情報しか記憶してない.

コンストラクタの詳細

Customer

public Customer()

Customer

public Customer(String s)
メソッドの詳細

toString

public String toString()
オーバーライド:
クラス Object 内の toString

getName

public String getName()

setName

public void setName(String name)

getRecords

public HashSet<Product> getRecords()

setRecords

public void setRecords(HashSet<Product> records)

addRecord

public void addRecord(Product p)
まぁ getRecordsがあるので,いらないのだけど・・・一応.

パラメータ:
p -