com.squarespace.cldr._CalendarUtils Maven / Gradle / Ivy
//
//
// AUTO-GENERATED CLASS - DO NOT EDIT
//
//
package com.squarespace.cldr;
import com.squarespace.cldr.dates.SkeletonType;
import java.lang.String;
public class _CalendarUtils {
/**
* Indicates whether a given skeleton pattern is a DATE or TIME.
*/
public static SkeletonType skeletonType(String skeleton) {
switch (skeleton) {
case "d":
case "E":
case "Ed":
case "Gy":
case "GyMMM":
case "GyMMMd":
case "GyMMMEd":
case "M":
case "Md":
case "MEd":
case "MMdd":
case "MMM":
case "MMMd":
case "MMMEd":
case "MMMMd":
case "MMMMEd":
case "MMMMW-count-one":
case "MMMMW-count-other":
case "y":
case "yM":
case "yMd":
case "yMEd":
case "yMM":
case "yMMM":
case "yMMMd":
case "yMMMEd":
case "yMMMM":
case "yMMMMd":
case "yMMMMEd":
case "yQQQ":
case "yQQQQ":
case "yw-count-one":
case "yw-count-other":
case "MMMMW-count-zero":
case "MMMMW-count-two":
case "MMMMW-count-few":
case "MMMMW-count-many":
case "yw-count-zero":
case "yw-count-two":
case "yw-count-few":
case "yw-count-many":
case "GyMMMM":
case "GyMMMMd":
case "GyMMMMEd":
case "MMd":
case "MMMdd":
case "yMMdd":
case "yMMMEEEEd":
case "MMMM":
case "MMMMdd":
case "GyM":
case "GyMMMEEEEd":
case "MMMEEEEd":
case "MMMMEEEEd":
case "yMMMMEEEEd":
case "yQ":
case "EEEEd":
case "MEEEEd":
case "yMEEEEd":
case "yMMMMccccd":
case "Mdd":
case "Md-alt-variant":
case "MEd-alt-variant":
case "MMdd-alt-variant":
case "yM-alt-variant":
case "yMd-alt-variant":
case "yMEd-alt-variant":
return SkeletonType.DATE;
case "Ehm":
case "EHm":
case "Ehms":
case "EHms":
case "h":
case "H":
case "hm":
case "Hm":
case "hms":
case "Hms":
case "hmsv":
case "Hmsv":
case "hmv":
case "Hmv":
case "ms":
case "hmsvvvv":
case "Hmsvvvv":
case "mmss":
case "HHmmss":
case "HHmmZ":
case "HHmm":
return SkeletonType.TIME;
default:
return null;
}
}
}