Skip to content

Instantly share code, notes, and snippets.

@jhamukul007
Created November 25, 2022 22:07
Show Gist options
  • Save jhamukul007/5cdbbd707bf4e16aac51f1dfc173e45f to your computer and use it in GitHub Desktop.
Save jhamukul007/5cdbbd707bf4e16aac51f1dfc173e45f to your computer and use it in GitHub Desktop.
Project
public class Project {
private Integer projectId;
private String name;
private String location;
private Integer availablePosition;
public Project(Integer projectId, String name, String location) {
this.projectId = projectId;
this.name = name;
this.location = location;
this.availablePosition = 50;
}
public Integer getProjectId() {
return projectId;
}
public String getName() {
return name;
}
public String getLocation() {
return location;
}
public Integer getAvailablePosition() {
return availablePosition;
}
public void reduceAvailablePosition() {
this.availablePosition = this.availablePosition-1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment