2 *******************************************************************************
\r
3 * Copyright (C) 2008, International Business Machines Corporation and *
\r
4 * others. All Rights Reserved. *
\r
5 *******************************************************************************
\r
7 package com.ibm.icu.impl.jdkadapter;
\r
9 import com.ibm.icu.text.DateFormatSymbols;
\r
12 * DateFormatSymbolsICU is an adapter class which wraps ICU4J DateFormatSymbols and
\r
13 * implements java.text.DateFormatSymbols APIs.
\r
15 public class DateFormatSymbolsICU extends java.text.DateFormatSymbols {
\r
17 private static final long serialVersionUID = -7313618555550964943L;
\r
19 private DateFormatSymbols fIcuDfs;
\r
21 private DateFormatSymbolsICU(DateFormatSymbols icuDfs) {
\r
25 public static java.text.DateFormatSymbols wrap(DateFormatSymbols icuDfs) {
\r
26 return new DateFormatSymbolsICU(icuDfs);
\r
29 public DateFormatSymbols unwrap() {
\r
34 public Object clone() {
\r
35 DateFormatSymbolsICU other = (DateFormatSymbolsICU)super.clone();
\r
36 other.fIcuDfs = (DateFormatSymbols)this.fIcuDfs.clone();
\r
41 public boolean equals(Object obj) {
\r
42 if (obj instanceof DateFormatSymbolsICU) {
\r
43 return ((DateFormatSymbolsICU)obj).fIcuDfs.equals(this.fIcuDfs);
\r
49 public String[] getAmPmStrings() {
\r
50 return fIcuDfs.getAmPmStrings();
\r
54 public String[] getEras() {
\r
55 return fIcuDfs.getEras();
\r
58 public String getLocalePatternChars() {
\r
59 return fIcuDfs.getLocalPatternChars();
\r
63 public String[] getMonths() {
\r
64 return fIcuDfs.getMonths();
\r
68 public String[] getShortMonths() {
\r
69 return fIcuDfs.getShortMonths();
\r
73 public String[] getShortWeekdays() {
\r
74 return fIcuDfs.getShortWeekdays();
\r
78 public String[] getWeekdays() {
\r
79 return fIcuDfs.getWeekdays();
\r
83 public String[][] getZoneStrings() {
\r
84 return fIcuDfs.getZoneStrings();
\r
88 public int hashCode() {
\r
89 return fIcuDfs.hashCode();
\r
93 public void setAmPmStrings(String[] newAmpms) {
\r
94 fIcuDfs.setAmPmStrings(newAmpms);
\r
98 public void setEras(String[] newEras) {
\r
99 fIcuDfs.setEras(newEras);
\r
103 public void setLocalPatternChars(String newLocalPatternChars) {
\r
104 fIcuDfs.setLocalPatternChars(newLocalPatternChars);
\r
108 public void setMonths(String[] newMonths) {
\r
109 fIcuDfs.setMonths(newMonths);
\r
113 public void setShortMonths(String[] newShortMonths) {
\r
114 fIcuDfs.setShortMonths(newShortMonths);
\r
118 public void setShortWeekdays(String[] newShortWeekdays) {
\r
119 fIcuDfs.setShortWeekdays(newShortWeekdays);
\r
123 public void setWeekdays(String[] newWeekdays) {
\r
124 fIcuDfs.setWeekdays(newWeekdays);
\r
128 public void setZoneStrings(String[][] newZoneStrings) {
\r
129 fIcuDfs.setZoneStrings(newZoneStrings);
\r