public final class Holiday extends Object
Constructor and Description |
---|
Holiday(LocalDate date,
String propertiesKey,
HolidayType type)
Constructs a holiday for a date using the provided properties key to
retrieve the description with.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
LocalDate |
getDate()
Getter for the field
date . |
String |
getDescription()
The description read with the default locale.
|
String |
getDescription(Locale locale)
The description read with the provided locale.
|
String |
getPropertiesKey()
Getter for the field
propertiesKey . |
HolidayType |
getType()
Gets the type holiday.
|
int |
hashCode() |
String |
toString() |
public Holiday(LocalDate date, String propertiesKey, HolidayType type)
date
- a LocalDate
object.propertiesKey
- a String
object.type
- a HolidayType
object.public LocalDate getDate()
Getter for the field date
.
public String getPropertiesKey()
Getter for the field propertiesKey
.
public String getDescription()
public String getDescription(Locale locale)
locale
- a Locale
object.public HolidayType getType()
Copyright © 18.01.2010–2015. All rights reserved.