diff --git a/icu4j/src/com/ibm/icu/util/CopticCalendar.java b/icu4j/src/com/ibm/icu/util/CopticCalendar.java index 1742eb6c92..47bde8aa57 100644 --- a/icu4j/src/com/ibm/icu/util/CopticCalendar.java +++ b/icu4j/src/com/ibm/icu/util/CopticCalendar.java @@ -145,5 +145,14 @@ public final class CopticCalendar extends CECalendar public static Integer[] getDateFromJD(int julianDay) { return getDateFromJD(julianDay, JD_EPOCH_OFFSET); } + + /** + * Return the current Calendar type. + * @return type of calendar (gregorian, etc.) + * @internal ICU 3.4 + */ + public String getType() { + return "coptic"; + } } diff --git a/icu4j/src/com/ibm/icu/util/EthiopicCalendar.java b/icu4j/src/com/ibm/icu/util/EthiopicCalendar.java index ad2049ff69..f9d6da94fd 100644 --- a/icu4j/src/com/ibm/icu/util/EthiopicCalendar.java +++ b/icu4j/src/com/ibm/icu/util/EthiopicCalendar.java @@ -164,5 +164,14 @@ public final class EthiopicCalendar extends CECalendar public boolean isAmeteAlemEra() { return this.jdEpochOffset == JD_EPOCH_OFFSET_AMETE_ALEM; } + + /** + * Return the current Calendar type. + * @return type of calendar (gregorian, etc.) + * @internal ICU 3.4 + */ + public String getType() { + return "ethiopic"; + } }