com.ibm.icu.util.InitialTimeZoneRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-client-compiler-deps Show documentation
Show all versions of vaadin-client-compiler-deps Show documentation
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
/*
*******************************************************************************
* Copyright (C) 2007-2008, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
package com.ibm.icu.util;
import java.util.Date;
/**
* InitialTimeZoneRule
represents a time zone rule
* representing a time zone effective from the beginning and
* has no actual start times.
*
* @stable ICU 3.8
*/
public class InitialTimeZoneRule extends TimeZoneRule {
private static final long serialVersionUID = 1876594993064051206L;
/**
* Constructs a InitialTimeZoneRule
with the name, the GMT offset of its
* standard time and the amount of daylight saving offset adjustment.
*
* @param name The time zone name.
* @param rawOffset The UTC offset of its standard time in milliseconds.
* @param dstSavings The amount of daylight saving offset adjustment in milliseconds.
* If this ia a rule for standard time, the value of this argument is 0.
*
* @stable ICU 3.8
*/
public InitialTimeZoneRule(String name, int rawOffset, int dstSavings) {
super(name, rawOffset, dstSavings);
}
/**
* {@inheritDoc}
*
* @stable ICU 3.8
*/
public boolean isEquivalentTo(TimeZoneRule other) {
if (other instanceof InitialTimeZoneRule) {
return super.isEquivalentTo(other);
}
return false;
}
/**
* {@inheritDoc}
* Note: This method in InitialTimeZoneRule
always returns null.
*
* @stable ICU 3.8
*/
public Date getFinalStart(int prevRawOffset, int prevDSTSavings) {
// No start time available
return null;
}
/**
* {@inheritDoc}
* Note: This method in InitialTimeZoneRule
always returns null.
*
* @stable ICU 3.8
*/
public Date getFirstStart(int prevRawOffset, int prevDSTSavings) {
// No start time available
return null;
}
/**
* {@inheritDoc}
* Note: This method in InitialTimeZoneRule
always returns null.
*
* @stable ICU 3.8
*/
public Date getNextStart(long base, int prevRawOffset, int prevDSTSavings,
boolean inclusive) {
// No start time available
return null;
}
/**
* {@inheritDoc}
* Note: This method in InitialTimeZoneRule
always returns null.
*
* @stable ICU 3.8
*/
public Date getPreviousStart(long base, int prevRawOffset,
int prevDSTSavings, boolean inclusive) {
// No start time available
return null;
}
/**
* {@inheritDoc}
* Note: This method in InitialTimeZoneRule
always returns false.
* @stable ICU 3.8
*/
public boolean isTransitionRule() {
return false;
}
}