@Entity public class Event extends Object
| Constructor and Description |
|---|
Event(EventType eventType,
String title,
String shortDescription,
Date date)
Creates a new instance of
Event. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Date |
getDate()
The getter for the date parameter.
|
List<User> |
getEventsJoinedByUsers()
Return all the users who have joined an event
|
EventType |
getEventType()
The getter for the eventType parameter.
|
int |
getId()
The getter for the id parameter.
|
String |
getShortDescription()
The getter for the description parameter.
|
String |
getTitle()
The getter for the title parameter.
|
int |
hashCode() |
void |
setDate(Date date)
The setter for the
Date parameter. |
void |
setEventType(EventType eventType)
The setter for the eventType parameter.
|
void |
setShortDescription(String shortDescription)
The setter for the description parameter.
|
void |
setTitle(String title)
The setter for the title parameter.
|
public Event(EventType eventType, String title, String shortDescription, Date date)
Event.eventType - the event type of the event. This paramenter must be a non
null EventType.title - the title of the envent. This paramenter must be a non
null string with with a maximum length of 20.shortDescription - the description of the event. This paramenter must be a non
null string with with a maximum length of 50.date - the date of the event. This paramenter must be a non
null.public EventType getEventType()
public void setEventType(EventType eventType)
eventType - the event type of the event. This paramenter must be a non
null EventType.NullPointerException - if a null value is passed as the value for this
parameter.public String getTitle()
public void setTitle(String title)
title - the title of the envent. This paramenter must be a non
null string with with a maximum length of 20.NullPointerException - if a null value is passed as the value for this
parameter.IllegalArgumentException - if value provided for the is not valid according to its
description.public String getShortDescription()
public void setShortDescription(String shortDescription)
shortDescription - the description of the event. This paramenter must be a non
null string with with a maximum length of 50.NullPointerException - if a null value is passed as the value for this
parameter.IllegalArgumentException - if value provided for description is not valid according to
its description.public Date getDate()
Date with the date of the event.public void setDate(Date date)
Date parameter.date - the date of the event. This paramenter must be a non
null.NullPointerException - if a null value is passed as the value for any
parameter.public int getId()
public List<User> getEventsJoinedByUsers()
Copyright © 2015. All rights reserved.