2 *******************************************************************************
\r
3 * Copyright (C) 2007-2008, International Business Machines Corporation and *
\r
4 * others. All Rights Reserved. *
\r
5 *******************************************************************************
\r
7 package com.ibm.icu.util;
\r
9 import java.util.Date;
\r
12 * <code>InitialTimeZoneRule</code> represents a time zone rule
\r
13 * representing a time zone effective from the beginning and
\r
14 * has no actual start times.
\r
18 public class InitialTimeZoneRule extends TimeZoneRule {
\r
20 private static final long serialVersionUID = 1876594993064051206L;
\r
23 * Constructs a <code>InitialTimeZoneRule</code> with the name, the GMT offset of its
\r
24 * standard time and the amount of daylight saving offset adjustment.
\r
26 * @param name The time zone name.
\r
27 * @param rawOffset The UTC offset of its standard time in milliseconds.
\r
28 * @param dstSavings The amount of daylight saving offset adjustment in milliseconds.
\r
29 * If this ia a rule for standard time, the value of this argument is 0.
\r
33 public InitialTimeZoneRule(String name, int rawOffset, int dstSavings) {
\r
34 super(name, rawOffset, dstSavings);
\r
42 public boolean isEquivalentTo(TimeZoneRule other) {
\r
43 if (other instanceof InitialTimeZoneRule) {
\r
44 return super.isEquivalentTo(other);
\r
50 * {@inheritDoc}<br><br>
\r
51 * Note: This method in <code>InitialTimeZoneRule</code> always returns null.
\r
55 public Date getFinalStart(int prevRawOffset, int prevDSTSavings) {
\r
56 // No start time available
\r
61 * {@inheritDoc}<br><br>
\r
62 * Note: This method in <code>InitialTimeZoneRule</code> always returns null.
\r
66 public Date getFirstStart(int prevRawOffset, int prevDSTSavings) {
\r
67 // No start time available
\r
72 * {@inheritDoc}<br><br>
\r
73 * Note: This method in <code>InitialTimeZoneRule</code> always returns null.
\r
77 public Date getNextStart(long base, int prevRawOffset, int prevDSTSavings,
\r
78 boolean inclusive) {
\r
79 // No start time available
\r
84 * {@inheritDoc}<br><br>
\r
85 * Note: This method in <code>InitialTimeZoneRule</code> always returns null.
\r
89 public Date getPreviousStart(long base, int prevRawOffset,
\r
90 int prevDSTSavings, boolean inclusive) {
\r
91 // No start time available
\r
96 * {@inheritDoc}<br><br>
\r
97 * Note: This method in <code>InitialTimeZoneRule</code> always returns false.
\r
100 public boolean isTransitionRule() {
\r