Update and rename Stage to Stage.java
This commit is contained in:
@@ -1,49 +0,0 @@
|
|||||||
import java.io.Serializable;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
|
|
||||||
public class Stage implements Serializable {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1;
|
|
||||||
|
|
||||||
private ArrayList<Event> events;
|
|
||||||
private String description;
|
|
||||||
private int ID;
|
|
||||||
|
|
||||||
public Stage(String description, int ID )
|
|
||||||
{
|
|
||||||
this.events = new ArrayList<Event>();
|
|
||||||
this.description = description;
|
|
||||||
this.ID = ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Event getEvent(int number)
|
|
||||||
{
|
|
||||||
return events.get(number);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription()
|
|
||||||
{
|
|
||||||
return this.description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getID()
|
|
||||||
{
|
|
||||||
return this.ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDescription(String description)
|
|
||||||
{
|
|
||||||
this.description = description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setID(int ID)
|
|
||||||
{
|
|
||||||
this.ID = ID;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addEvent(Event event)
|
|
||||||
{
|
|
||||||
events.add(event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
public class Stage implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
public Stage(String name, String description)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName()
|
||||||
|
{
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return this.description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description)
|
||||||
|
{
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user