1 16 package org.joda.time.chrono; 17 18 import java.util.Locale ; 19 20 28 final class GJMonthOfYearDateTimeField extends BasicMonthOfYearDateTimeField { 29 30 31 private static final long serialVersionUID = -4748157875845286249L; 32 33 36 GJMonthOfYearDateTimeField(BasicChronology chronology) { 37 super(chronology, 2); 38 } 39 40 public String getAsText(int fieldValue, Locale locale) { 42 return GJLocaleSymbols.forLocale(locale).monthOfYearValueToText(fieldValue); 43 } 44 45 public String getAsShortText(int fieldValue, Locale locale) { 47 return GJLocaleSymbols.forLocale(locale).monthOfYearValueToShortText(fieldValue); 48 } 49 50 protected int convertText(String text, Locale locale) { 52 return GJLocaleSymbols.forLocale(locale).monthOfYearTextToValue(text); 53 } 54 55 public int getMaximumTextLength(Locale locale) { 57 return GJLocaleSymbols.forLocale(locale).getMonthMaxTextLength(); 58 } 59 60 public int getMaximumShortTextLength(Locale locale) { 62 return GJLocaleSymbols.forLocale(locale).getMonthMaxShortTextLength(); 63 } 64 65 } 66 | Popular Tags |