From fe03e3ea5afb6758b6ef2f16d34dbfec30426fdf Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 3 Feb 2000 18:26:51 +0000 Subject: * java/util/Calendar.java (toString): New method. * java/util/SimpleTimeZone.java (clone): New method. (toString): New method. * java/util/TimeZone.java (clone): New method. * java/text/SimpleDateFormat.java (clone): New method. * java/text/NumberFormat.java (clone): New method. (equals): New method. * java/text/Format.java (clone): New method. * java/text/DateFormatSymbols.java (DateFormatSymbols): New constructor. (clone): New method. * java/text/DateFormat.java (clone): New method. * java/text/Collator.java (clone): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31775 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/text/DateFormatSymbols.java | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'libjava/java/text/DateFormatSymbols.java') diff --git a/libjava/java/text/DateFormatSymbols.java b/libjava/java/text/DateFormatSymbols.java index 75067225f00..99a053e507d 100644 --- a/libjava/java/text/DateFormatSymbols.java +++ b/libjava/java/text/DateFormatSymbols.java @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999 Red Hat, Inc. +/* Copyright (C) 1998, 1999, 2000 Red Hat, Inc. This file is part of libgcj. @@ -121,6 +121,19 @@ public class DateFormatSymbols extends Object this (Locale.getDefault()); } + // Copy constructor. + private DateFormatSymbols (DateFormatSymbols old) + { + ampms = old.ampms; + eras = old.eras; + localPatternChars = old.localPatternChars; + months = old.months; + shortMonths = old.shortMonths; + shortWeekdays = old.shortWeekdays; + weekdays = old.weekdays; + zoneStrings = old.zoneStrings; + } + public String[] getAmPmStrings() { return ampms; @@ -251,6 +264,11 @@ public class DateFormatSymbols extends Object && equals(zoneStrings, other.zoneStrings)); } + public Object clone () + { + return new DateFormatSymbols (this); + } + public int hashCode () { return (hashCode(ampms) -- cgit v1.2.3