ICU-2087 fix @ tags

X-SVN-Rev: 10437
This commit is contained in:
Alan Liu 2002-12-03 18:57:36 +00:00
parent 0438cf28e8
commit 03600c82ca
7 changed files with 89 additions and 21 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/CompoundTransliterator.java,v $
* $Date: 2002/06/26 18:12:39 $
* $Revision: 1.30 $
* $Date: 2002/12/03 18:57:36 $
* $Revision: 1.31 $
*
*****************************************************************************************
*/
@ -30,7 +30,7 @@ import java.util.Vector;
* <p>Copyright &copy; IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
* @version $RCSfile: CompoundTransliterator.java,v $ $Revision: 1.30 $ $Date: 2002/06/26 18:12:39 $
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public class CompoundTransliterator extends Transliterator {
@ -58,6 +58,7 @@ public class CompoundTransliterator extends Transliterator {
* <tt>filter.contains()</tt> returns <tt>false</tt> will not be
* altered by this transliterator. If <tt>filter</tt> is
* <tt>null</tt> then no filtering is applied.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public CompoundTransliterator(Transliterator[] transliterators,
UnicodeFilter filter) {
@ -74,6 +75,7 @@ public class CompoundTransliterator extends Transliterator {
* transliterators have at least two components.
* @param transliterators array of <code>Transliterator</code>
* objects
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public CompoundTransliterator(Transliterator[] transliterators) {
this(transliterators, null);
@ -85,6 +87,7 @@ public class CompoundTransliterator extends Transliterator {
* @param direction either Transliterator.FORWARD or Transliterator.REVERSE
* @param filter a global filter for this compound transliterator
* or null
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public CompoundTransliterator(String ID, int direction,
UnicodeFilter filter) {
@ -96,6 +99,7 @@ public class CompoundTransliterator extends Transliterator {
* Constructs a new compound transliterator with no filter.
* @param ID compound ID
* @param direction either Transliterator.FORWARD or Transliterator.REVERSE
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public CompoundTransliterator(String ID, int direction) {
this(ID, direction, null);
@ -104,6 +108,7 @@ public class CompoundTransliterator extends Transliterator {
/**
* Constructs a new forward compound transliterator with no filter.
* @param ID compound ID
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public CompoundTransliterator(String ID) {
this(ID, FORWARD, null);
@ -243,6 +248,7 @@ public class CompoundTransliterator extends Transliterator {
/**
* Returns the number of transliterators in this chain.
* @return number of transliterators in this chain.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public int getCount() {
return trans.length;
@ -252,6 +258,7 @@ public class CompoundTransliterator extends Transliterator {
* Returns the transliterator at the given index in this chain.
* @param index index into chain, from 0 to <code>getCount() - 1</code>
* @return transliterator at the given index
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public Transliterator getTransliterator(int index) {
return trans[index];
@ -276,7 +283,7 @@ public class CompoundTransliterator extends Transliterator {
* \\Uxxxxxxxx. Unprintable characters are those other than
* U+000A, U+0020..U+007E.
* @return the rule string
* @deprecated To be removed after 2002-sep-30.
* @deprecated ICU 2.4 This class to become private after 2002-sep-30.
*/
public String toRules(boolean escapeUnprintable) {
// We do NOT call toRules() on our component transliterators, in
@ -308,6 +315,7 @@ public class CompoundTransliterator extends Transliterator {
/**
* Return the set of all characters that may be modified by this
* Transliterator, ignoring the effect of our filter.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
protected UnicodeSet handleGetSourceSet() {
UnicodeSet set = new UnicodeSet();
@ -331,6 +339,7 @@ public class CompoundTransliterator extends Transliterator {
/**
* Returns the set of all characters that may be generated as
* replacement text by this transliterator.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public UnicodeSet getTargetSet() {
UnicodeSet set = new UnicodeSet();
@ -343,6 +352,7 @@ public class CompoundTransliterator extends Transliterator {
/**
* Implements {@link Transliterator#handleTransliterate}.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
protected void handleTransliterate(Replaceable text,
Position index, boolean incremental) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Attic/HexToUnicodeTransliterator.java,v $
* $Date: 2002/02/25 22:43:58 $
* $Revision: 1.13 $
* $Date: 2002/12/03 18:56:44 $
* $Revision: 1.14 $
*
*****************************************************************************************
*/
@ -24,7 +24,7 @@ import com.ibm.icu.impl.Utility;
* applyPattern() for details.
*
* @author Alan Liu
* @version $RCSfile: HexToUnicodeTransliterator.java,v $ $Revision: 1.13 $ $Date: 2002/02/25 22:43:58 $
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public class HexToUnicodeTransliterator extends Transliterator {
private static final String COPYRIGHT =
@ -70,6 +70,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
/**
* Constructs a transliterator.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public HexToUnicodeTransliterator() {
super(_ID, null);
@ -78,6 +79,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
/**
* Constructs a transliterator.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public HexToUnicodeTransliterator(String thePattern) {
this(thePattern, null);
@ -85,6 +87,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
/**
* Constructs a transliterator.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public HexToUnicodeTransliterator(String thePattern,
UnicodeFilter theFilter) {
@ -117,6 +120,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
* suffix-char := [^special-char] | '\\' special-char
* special-char := ';' | '0' | '#' | '\\'
* </pre>
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public void applyPattern(String pattern) {
@ -258,6 +262,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
/**
* Return this transliterator's pattern.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public String toPattern() {
return pattern;
@ -265,6 +270,7 @@ public class HexToUnicodeTransliterator extends Transliterator {
/**
* Implements {@link Transliterator#handleTransliterate}.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
protected void handleTransliterate(Replaceable text,
Position offsets, boolean isIncremental) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/NullTransliterator.java,v $
* $Date: 2002/02/16 03:06:11 $
* $Revision: 1.10 $
* $Date: 2002/12/03 18:57:36 $
* $Revision: 1.11 $
*
*****************************************************************************************
*/
@ -15,6 +15,7 @@ import java.util.*;
/**
* A transliterator that leaves text unchanged.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public class NullTransliterator extends Transliterator {
private static final String COPYRIGHT =
@ -28,6 +29,7 @@ public class NullTransliterator extends Transliterator {
/**
* Constructs a transliterator.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public NullTransliterator() {
super(_ID, null);
@ -35,6 +37,7 @@ public class NullTransliterator extends Transliterator {
/**
* Implements {@link Transliterator#handleTransliterate}.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
protected void handleTransliterate(Replaceable text,
Position offsets, boolean incremental) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/ReplaceableString.java,v $
* $Date: 2002/07/02 23:50:34 $
* $Revision: 1.11 $
* $Date: 2002/12/03 18:56:30 $
* $Revision: 1.12 $
*
*****************************************************************************************
*/
@ -26,7 +26,7 @@ import com.ibm.icu.impl.Utility;
*
* @see Replaceable
* @author Alan Liu
* @version $RCSfile: ReplaceableString.java,v $ $Revision: 1.11 $ $Date: 2002/07/02 23:50:34 $
* @stable
*/
public class ReplaceableString implements Replaceable {
private StringBuffer buf;
@ -37,6 +37,7 @@ public class ReplaceableString implements Replaceable {
/**
* Construct a new object with the given initial contents.
* @param str initial contents
* @stable
*/
public ReplaceableString(String str) {
buf = new StringBuffer(str);
@ -49,6 +50,7 @@ public class ReplaceableString implements Replaceable {
* Modifications to <code>buf</code> will modify this object, and
* vice versa.</em>
* @param buf object to be used as internal storage
* @stable
*/
public ReplaceableString(StringBuffer buf) {
this.buf = buf;
@ -56,6 +58,7 @@ public class ReplaceableString implements Replaceable {
/**
* Construct a new empty object.
* @stable
*/
public ReplaceableString() {
buf = new StringBuffer();
@ -64,6 +67,7 @@ public class ReplaceableString implements Replaceable {
/**
* Return the contents of this object as a <code>String</code>.
* @return string contents of this object
* @stable
*/
public String toString() {
return buf.toString();
@ -71,6 +75,7 @@ public class ReplaceableString implements Replaceable {
/**
* Return a substring of the given string.
* @stable
*/
public String substring(int start, int limit) {
return buf.substring(start, limit);
@ -79,6 +84,7 @@ public class ReplaceableString implements Replaceable {
/**
* Return the number of characters contained in this object.
* <code>Replaceable</code> API.
* @stable
*/
public int length() {
return buf.length();
@ -89,6 +95,7 @@ public class ReplaceableString implements Replaceable {
* <code>Replaceable</code> API.
* @param offset offset into the contents, from 0 to
* <code>length()</code> - 1
* @stable
*/
public char charAt(int offset) {
return buf.charAt(offset);
@ -103,6 +110,7 @@ public class ReplaceableString implements Replaceable {
* @param offset an integer between 0 and <code>length()</code>-1
* inclusive
* @return 32-bit code point of text at given offset
* @stable
*/
public int char32At(int offset) {
return UTF16.charAt(buf, offset);
@ -124,6 +132,7 @@ public class ReplaceableString implements Replaceable {
* <code>start <= limit <= length()</code>.
* @param dst the destination array.
* @param dstStart the start offset in the destination array.
* @stable
*/
public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) {
Utility.getChars(buf, srcStart, srcLimit, dst, dstStart);
@ -138,6 +147,7 @@ public class ReplaceableString implements Replaceable {
* <= length()</code>.
* @param text new text to replace characters <code>start</code> to
* <code>limit - 1</code>
* @stable
*/
public void replace(int start, int limit, String text) {
buf.replace(start, limit, text);
@ -154,6 +164,7 @@ public class ReplaceableString implements Replaceable {
* @param charsStart the beginning index into <code>chars</code>,
* inclusive; <code>0 <= start <= limit</code>.
* @param charsLen the number of characters of <code>chars</code>.
* @stable
*/
public void replace(int start, int limit, char[] chars,
int charsStart, int charsLen) {
@ -174,6 +185,7 @@ public class ReplaceableString implements Replaceable {
* <code>start..limit-1</code> will be copied to <code>dest</code>.
* Implementations of this method may assume that <code>dest <= start ||
* dest >= limit</code>.
* @stable
*/
public void copy(int start, int limit, int dest) {
if (start == limit && start >= 0 && start <= buf.length()) {
@ -186,6 +198,7 @@ public class ReplaceableString implements Replaceable {
/**
* Implements Replaceable
* @stable
*/
public boolean hasMetaData() {
return false;

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/RuleBasedTransliterator.java,v $
* $Date: 2002/07/26 21:12:36 $
* $Revision: 1.57 $
* $Date: 2002/12/03 18:57:36 $
* $Revision: 1.58 $
*
*****************************************************************************************
*/
@ -279,7 +279,7 @@ import com.ibm.icu.impl.data.ResourceReader;
* <p>Copyright (c) IBM Corporation 1999-2000. All rights reserved.</p>
*
* @author Alan Liu
* @version $RCSfile: RuleBasedTransliterator.java,v $ $Revision: 1.57 $ $Date: 2002/07/26 21:12:36 $
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public class RuleBasedTransliterator extends Transliterator {
@ -294,6 +294,7 @@ public class RuleBasedTransliterator extends Transliterator {
* @param direction either FORWARD or REVERSE.
* @exception IllegalArgumentException if rules are malformed
* or direction is invalid.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public RuleBasedTransliterator(String ID, String rules, int direction,
UnicodeFilter filter) {
@ -319,6 +320,7 @@ public class RuleBasedTransliterator extends Transliterator {
* @param rules rules, separated by ';'
* @exception IllegalArgumentException if rules are malformed
* or direction is invalid.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public RuleBasedTransliterator(String ID, String rules) {
this(ID, rules, FORWARD, null);
@ -332,6 +334,7 @@ public class RuleBasedTransliterator extends Transliterator {
/**
* Implements {@link Transliterator#handleTransliterate}.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
protected void handleTransliterate(Replaceable text,
Position index, boolean incremental) {
@ -444,6 +447,7 @@ public class RuleBasedTransliterator extends Transliterator {
* \\Uxxxxxxxx. Unprintable characters are those other than
* U+000A, U+0020..U+007E.
* @return rules string
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public String toRules(boolean escapeUnprintable) {
return data.ruleSet.toRules(escapeUnprintable);
@ -452,6 +456,7 @@ public class RuleBasedTransliterator extends Transliterator {
/**
* Return the set of all characters that may be modified by this
* Transliterator, ignoring the effect of our filter.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
protected UnicodeSet handleGetSourceSet() {
return data.ruleSet.getSourceTargetSet(false);
@ -460,6 +465,7 @@ public class RuleBasedTransliterator extends Transliterator {
/**
* Returns the set of all characters that may be generated as
* replacement text by this transliterator.
* @deprecated ICU 2.4 This class to become private after 2003-12-01. Use the Transliterator factory methods.
*/
public UnicodeSet getTargetSet() {
return data.ruleSet.getSourceTargetSet(true);
@ -468,6 +474,9 @@ public class RuleBasedTransliterator extends Transliterator {
/**
* $Log: RuleBasedTransliterator.java,v $
* Revision 1.58 2002/12/03 18:57:36 alan
* jitterbug 2087: fix @ tags
*
* Revision 1.57 2002/07/26 21:12:36 alan
* jitterbug 1997: use UCharacterProperty.isRuleWhiteSpace() in parsers
*

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Attic/UnicodeToHexTransliterator.java,v $
* $Date: 2002/02/16 03:06:23 $
* $Revision: 1.12 $
* $Date: 2002/12/03 18:56:46 $
* $Revision: 1.13 $
*
*****************************************************************************************
*/
@ -32,7 +32,7 @@ import java.util.*;
* default is uppercase.
*
* @author Alan Liu
* @version $RCSfile: UnicodeToHexTransliterator.java,v $ $Revision: 1.12 $ $Date: 2002/02/16 03:06:23 $
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public class UnicodeToHexTransliterator extends Transliterator {
@ -92,6 +92,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
* Ignored if direction is HEX_UNICODE.
* @param filter the filter for this transliterator, or
* null if none.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public UnicodeToHexTransliterator(String pattern, boolean uppercase,
UnicodeFilter filter) {
@ -104,6 +105,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
* Constructs an uppercase transliterator with no filter.
* @param pattern The pattern for this transliterator. See
* applyPattern() for pattern syntax.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public UnicodeToHexTransliterator(String pattern) {
this(pattern, true, null);
@ -112,6 +114,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
/**
* Constructs a transliterator with the default prefix "&#092;u"
* that outputs four uppercase hex digits.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public UnicodeToHexTransliterator() {
super(_ID, null);
@ -147,6 +150,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
* <p>Limitations: There is no way to set the uppercase attribute
* in the pattern. (applyPattern() does not alter the uppercase
* attribute.)
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public void applyPattern(String thePattern) {
StringBuffer prefixBuf = null;
@ -236,6 +240,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
/**
* Return this transliterator's pattern.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public String toPattern() {
return pattern;
@ -244,6 +249,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
/**
* Returns the string that precedes the four hex digits.
* @return prefix string
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public String getPrefix() {
return prefix;
@ -256,6 +262,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
* multiple threads. The prefix should not be changed by one
* thread while another thread may be transliterating.
* @param prefix prefix string
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public void setPrefix(String prefix) {
this.prefix = prefix;
@ -263,6 +270,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
/**
* Returns true if this transliterator outputs uppercase hex digits.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public boolean isUppercase() {
return uppercase;
@ -276,6 +284,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
* one thread while another thread may be transliterating.
* @param outputUppercase if true, then this transliterator
* outputs uppercase hex digits.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
public void setUppercase(boolean outputUppercase) {
uppercase = outputUppercase;
@ -283,6 +292,7 @@ public class UnicodeToHexTransliterator extends Transliterator {
/**
* Implements {@link Transliterator#handleTransliterate}.
* @deprecated ICU 2.4 This class to be removed after 2003-12-01. Use the Transliterator factory methods.
*/
protected void handleTransliterate(Replaceable text,
Position offsets, boolean incremental) {

View File

@ -2,8 +2,8 @@
* others. All Rights Reserved.
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/util/Attic/SimpleTimeZoneAdapter.java,v $
* $Date: 2002/02/16 03:06:30 $
* $Revision: 1.2 $
* $Date: 2002/12/03 18:56:15 $
* $Revision: 1.3 $
*/
package com.ibm.icu.util;
import java.util.Date;
@ -32,6 +32,7 @@ import java.util.Date;
*
* @see com.ibm.icu.util.TimeZone#setDefault
* @author Alan Liu
* @stable
*/
public class SimpleTimeZoneAdapter extends java.util.TimeZone {
@ -40,13 +41,18 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
* We delegate all methods to this object.
*/
private SimpleTimeZone zone;
/**
* Constructs an adapter for a SimpleTimeZone object.
* @stable
*/
public SimpleTimeZoneAdapter(SimpleTimeZone zone) {
this.zone = zone;
}
/**
* Override TimeZone
* @stable
*/
public String getID() {
return zone.getID();
@ -54,6 +60,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Override TimeZone
* @stable
*/
public void setID(String ID) {
zone.setID(ID);
@ -61,6 +68,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Override TimeZone
* @stable
*/
public boolean hasSameRules(java.util.TimeZone other) {
return other instanceof SimpleTimeZoneAdapter &&
@ -69,6 +77,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Override TimeZone
* @stable
*/
public int getOffset(int era, int year, int month, int day, int dayOfWeek,
int millis) {
@ -92,6 +101,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Overrides TimeZone
* Gets the GMT offset for this time zone.
* @stable
*/
public int getRawOffset() {
return zone.getRawOffset();
@ -99,6 +109,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Overrides TimeZone
* @stable
*/
public void setRawOffset(int offsetMillis) {
zone.setRawOffset(offsetMillis);
@ -106,6 +117,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Overrides TimeZone
* @stable
*/
public boolean useDaylightTime() {
return zone.useDaylightTime();
@ -113,6 +125,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Overrides TimeZone
* @stable
*/
public boolean inDaylightTime(Date date) {
return zone.inDaylightTime(date);
@ -120,6 +133,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Overrides Cloneable
* @stable
*/
public Object clone() {
return new SimpleTimeZoneAdapter((SimpleTimeZone)zone.clone());
@ -127,6 +141,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Override hashCode.
* @stable
*/
public synchronized int hashCode() {
return zone.hashCode();
@ -138,6 +153,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
* @param obj The SimpleTimeZone object to be compared with.
* @return True if the given obj is the same as this SimpleTimeZone
* object; false otherwise.
* @stable
*/
public boolean equals(Object obj) {
if (obj instanceof SimpleTimeZoneAdapter) {
@ -149,6 +165,7 @@ public class SimpleTimeZoneAdapter extends java.util.TimeZone {
/**
* Return a string representation of this time zone.
* @return a string representation of this time zone.
* @stable
*/
public String toString() {
// Should probably show our class name here...fix later.