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