aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/SimpleTimeZone.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-02-03 18:26:51 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-02-03 18:26:51 +0000
commit14447d9674516f64525e963cf08134db330dc304 (patch)
tree85aea7711b50644d2a0b864b59738c7489ebc02b /libjava/java/util/SimpleTimeZone.java
parent7d3151e1c97ed21842b759aedecbc34588f85112 (diff)
downloadgcc-14447d9674516f64525e963cf08134db330dc304.zip
gcc-14447d9674516f64525e963cf08134db330dc304.tar.gz
gcc-14447d9674516f64525e963cf08134db330dc304.tar.bz2
Calendar.java (toString): New method.
* 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. From-SVN: r31775
Diffstat (limited to 'libjava/java/util/SimpleTimeZone.java')
-rw-r--r--libjava/java/util/SimpleTimeZone.java28
1 files changed, 27 insertions, 1 deletions
diff --git a/libjava/java/util/SimpleTimeZone.java b/libjava/java/util/SimpleTimeZone.java
index f8c8315..84d43d6 100644
--- a/libjava/java/util/SimpleTimeZone.java
+++ b/libjava/java/util/SimpleTimeZone.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.
@@ -169,6 +169,32 @@ public class SimpleTimeZone extends TimeZone
return getID() == other.getID() && hasSameRules(other);
}
+ public Object clone ()
+ {
+ // We know the superclass just call's Object's generic cloner.
+ return super.clone ();
+ }
+
+ public String toString ()
+ {
+ // The docs don't say much about how we might implement this.
+ // We choose a debugging implementation.
+ return ("dstSavings " + dstSavings
+ + "; rawOffset " + rawOffset
+ + "; startDay " + startDay
+ + "; startDayOfWeek " + startDayOfWeek
+ + "; startMode " + startMode
+ + "; startMonth " + startMonth
+ + "; startTime " + startTime
+ + "; startYear " + startYear
+ + "; endDay " + endDay
+ + "; endDayOfWeek " + endDayOfWeek
+ + "; endMode " + endMode
+ + "; endMonth " + endMonth
+ + "; endTime " + endTime
+ + "; useDaylight " + useDaylight);
+ }
+
public int hashCode ()
{
// FIXME - this does not folow any spec (since none is public)!