| |
|
| java.lang.Object sun.tools.javazic.Rule
Rule | class Rule (Code) | | Rule manipulates Rule records.
since: 1.4 |
Constructor Summary | |
| Rule(String name) Constructs a Rule which consists of a Rule record list. |
Method Summary | |
void | add(RuleRec rec) Added a RuleRec to the Rule record list. | ArrayList | getLastRules() Gets rule records that have either "max" or cover the endYear
value in its DST schedule.
rules that contain last DST schedule. | String | getName() | ArrayList | getRules(int year) Gets all rule records that cover the given year.
Parameters: year - the year number for which the rule is applicable. |
Rule | Rule(String name)(Code) | | Constructs a Rule which consists of a Rule record list. The
specified name is given to this Rule.
Parameters: name - the Rule name |
add | void add(RuleRec rec)(Code) | | Added a RuleRec to the Rule record list.
|
getLastRules | ArrayList getLastRules()(Code) | | Gets rule records that have either "max" or cover the endYear
value in its DST schedule.
rules that contain last DST schedule. An emptyArrayList is returned if no last rules are found. |
getRules | ArrayList getRules(int year)(Code) | | Gets all rule records that cover the given year.
Parameters: year - the year number for which the rule is applicable. rules in ArrayList that are collated in time. If no rule is found, an emptyArrayList is returned. |
|
|
|