public class ArrayWeekDayFormatter extends java.lang.Object implements WeekDayFormatter
DEFAULT
Constructor and Description |
---|
ArrayWeekDayFormatter(java.lang.CharSequence[] weekDayLabels) |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
format(int dayOfWeek)
Convert a given day of the week into a label
|
public ArrayWeekDayFormatter(java.lang.CharSequence[] weekDayLabels)
weekDayLabels
- an array of 7 labels, starting with Sundaypublic java.lang.CharSequence format(int dayOfWeek)
format
in interface WeekDayFormatter
dayOfWeek
- the day of the week as returned by Calendar.get(int) for Calendar.DAY_OF_YEAR