Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1차 VER1.0] Java ToyProject upload by TaeIlKIM #14

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: class customer setting
james-taeil committed May 9, 2023
commit 77a314e9b5b2a351db64237dcb9fb3ad5f685ac6
80 changes: 80 additions & 0 deletions src/me/smartstore/customers/Customer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
package me.smartstore.customers;

import java.util.Objects;

public class Customer {
private String cName;
private String cId;
private Integer totalTime;
private Integer totalPay;

public Customer() {
}

public Customer(String cName, String cId) {
this.cName = cName;
this.cId = cId;
}

public Customer(String cName, String cId, Integer totalTime, Integer totalPay) {
this.cName = cName;
this.cId = cId;
this.totalTime = totalTime;
this.totalPay = totalPay;
}

public String getcName() {
return cName;
}

public void setcName(String cName) {
this.cName = cName;
}

public String getcId() {
return cId;
}

public void setcId(String cId) {
this.cId = cId;
}

public Integer getTotalTime() {
return totalTime;
}

public void setTotalTime(Integer totalTime) {
this.totalTime = totalTime;
}

public Integer getTotalPay() {
return totalPay;
}

public void setTotalPay(Integer totalPay) {
this.totalPay = totalPay;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Customer customer = (Customer) o;
return Objects.equals(cId, customer.cId);
}

@Override
public int hashCode() {
return Objects.hash(cId);
}

@Override
public String toString() {
return "Customer{" +
"cName='" + cName + '\'' +
", cId='" + cId + '\'' +
", totalTime=" + totalTime +
", totalPay=" + totalPay +
'}';
}
}