forked from YoussefAhmed256/gitlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBranch.java
More file actions
31 lines (26 loc) · 695 Bytes
/
Branch.java
File metadata and controls
31 lines (26 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package gitlet;
import java.io.Serializable;
public class Branch implements Serializable {
private String name;
private String commitHash;
public Branch(String name, String commitHash) {
this.name = name;
this.commitHash = commitHash;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCommitHash() {
return commitHash;
}
public void setCommitHash(String commitHash) {
this.commitHash = commitHash;
}
@Override
public String toString() {
return "Branch [name=" + name + ", commitHash=" + commitHash + "]";
}
}