Skip to content

zoeleesss/chainOfResponsibility

Repository files navigation

chainOfResponsibility

显示查看历史Demo

/**
 * Created by sss on 01/01/2018.
 */
public class PurchaseRequest {

    private double amount;
    private String purpose;

    public PurchaseRequest(double amount, String purpose) {
        this.amount = amount;
        this.purpose = purpose;
    }

    public double getAmount() {
        return this.amount;
    }

    public void setAmount(double amount)  {
        this.amount = amount;
    }

    public String getPurpose() {
        return this.purpose;
    }
    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }
} 

About

A design pattern in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published