| java.lang.Object sun.tools.javazic.RuleRec
RuleRec | class RuleRec (Code) | | RuleRec class represents one record of the Rule set.
since: 1.4 |
getFromYear | int getFromYear()(Code) | | |
getMonthNum | int getMonthNum()(Code) | | |
getToYear | int getToYear()(Code) | | |
getTransitionTime | long getTransitionTime(int year, int gmtOffset, int save)(Code) | | Calculates the transition time of the given year under this rule.
Parameters: year - the year value Parameters: gmtOffset - the GMT offset value in milliseconds Parameters: save - the amount of daylight save time the transition time in milliseconds of the given year in UTC. |
isEven | boolean isEven()(Code) | | true if the rule type is "even". |
isLastRule | boolean isLastRule()(Code) | | Determines if this rule record is the last DST schedule rule.
true if this rule record has "max" as TO (year). |
isOdd | boolean isOdd()(Code) | | true if the rule type is "odd". |
isSameTransition | boolean isSameTransition(ZoneRec zrec, int save, int gmtOffset)(Code) | | Determines if the unadjusted until time of the specified ZoneRec
is the same as the transition time of this rule in the same
year as the ZoneRec until year.
Parameters: zrec - ZoneRec to compare to Parameters: save - the amount of daylight saving in milliseconds Parameters: gmtOffset - the GMT offset value in milliseconds true if the unadjusted until time is the same as rule'stransition time. |
parse | static RuleRec parse(StringTokenizer tokens)(Code) | | Parses a Rule line and returns a RuleRec object.
Parameters: tokens - a StringTokenizer object that should contain atoken for the "FROM" field and the rest. a RuleRec object. |
setLine | void setLine(String line)(Code) | | Sets the line from the text file.
Parameters: line - the text of the line |
|
|