Event

Inheritance: java.lang.Object

public final class Event

Represents standard QR-Code Event details.

Constructors

Constructor Description
Event() Creates Event instance with default values.

Methods

Method Description
getTitle() Gets or sets event title.
setTitle(String value) Gets or sets event title.
getDescription() Gets or sets description.
setDescription(String value) Gets or sets description.
getLocation() Gets or sets event location.
setLocation(String value) Gets or sets event location.
getStartDate() Gets or sets event start date and time.
setStartDate(Date value) Gets or sets event start date and time.
getEndDate() Gets or sets event end date and time.
setEndDate(Date value) Gets or sets event end date and time.
equals(Object source) Overwrites Equals method to compare Event properties
hashCode() Overrides GetHashCode method

Event()

public Event()

Creates Event instance with default values.

getTitle()

public final String getTitle()

Gets or sets event title.

Returns: java.lang.String

setTitle(String value)

public final void setTitle(String value)

Gets or sets event title.

Parameters:

Parameter Type Description
value java.lang.String

getDescription()

public final String getDescription()

Gets or sets description.

Returns: java.lang.String

setDescription(String value)

public final void setDescription(String value)

Gets or sets description.

Parameters:

Parameter Type Description
value java.lang.String

getLocation()

public final String getLocation()

Gets or sets event location.

Returns: java.lang.String

setLocation(String value)

public final void setLocation(String value)

Gets or sets event location.

Parameters:

Parameter Type Description
value java.lang.String

getStartDate()

public final Date getStartDate()

Gets or sets event start date and time.

Returns: java.util.Date

setStartDate(Date value)

public final void setStartDate(Date value)

Gets or sets event start date and time.

Parameters:

Parameter Type Description
value java.util.Date

getEndDate()

public final Date getEndDate()

Gets or sets event end date and time.

Returns: java.util.Date

setEndDate(Date value)

public final void setEndDate(Date value)

Gets or sets event end date and time.

Parameters:

Parameter Type Description
value java.util.Date

equals(Object source)

public boolean equals(Object source)

Overwrites Equals method to compare Event properties

Parameters:

Parameter Type Description
source java.lang.Object Event object to compare with.

Returns: boolean - Returns true if passed Event object has same type and all its properties are equal to this instance properties.

hashCode()

public int hashCode()

Overrides GetHashCode method

Returns: int - Event hash code