what-the-bank/sources/com/prolificinteractive/materialcalendarview/format/ArrayWeekDayFormatter.java

22 lines
761 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.prolificinteractive.materialcalendarview.format;
/* loaded from: classes3.dex */
public class ArrayWeekDayFormatter implements WeekDayFormatter {
private final CharSequence[] weekDayLabels;
public ArrayWeekDayFormatter(CharSequence[] charSequenceArr) {
if (charSequenceArr == null) {
throw new IllegalArgumentException("Cannot be null");
}
if (charSequenceArr.length != 7) {
throw new IllegalArgumentException("Array must contain exactly 7 elements");
}
this.weekDayLabels = charSequenceArr;
}
@Override // com.prolificinteractive.materialcalendarview.format.WeekDayFormatter
public CharSequence format(int i) {
return this.weekDayLabels[i - 1];
}
}