if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
/** * Returns null if none can be built. */ public DSTZone buildTailZone(String id) { if (iRules.size() == 2) { Rule startRule = iRules.get(0); Rule endRule = iRules.get(1); if (startRule.getToYear() == Integer.MAX_VALUE && endRule.getToYear() == Integer.MAX_VALUE) { // With exactly two infinitely recurring rules left, a // simple DSTZone can be formed. // The order of rules can come in any order, and it doesn't // really matter which rule was chosen the 'start' and // which is chosen the 'end'. DSTZone works properly either // way. return new DSTZone(id, iStandardOffset, startRule.iRecurrence, endRule.iRecurrence); } } return null; } }
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
while (it.hasNext()) { Rule rule = (Rule)it.next(); if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
if (rule.getSaveMillis() == 0) { first = new Transition(firstMillis, rule, iStandardOffset); break;
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
while (it.hasNext()) { Rule rule = (Rule)it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
while (it.hasNext()) { Rule rule = it.next(); long next = rule.next(instant, iStandardOffset, saveMillis); if (next <= instant) { it.remove();
(mode, monthOfYear, dayOfMonth, dayOfWeek, advanceDayOfWeek, millisOfDay); Recurrence recurrence = new Recurrence(ofYear, nameKey, saveMillis); Rule rule = new Rule(recurrence, fromYear, toYear); getLastRuleSet().addRule(rule);