Searched defs:rules (Results 1 - 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
H A DRuleBasedCollator.java62 * The collation table is composed of a list of collation rules, where each
79 * turn on special collation rules.
101 * can also be used to add a modification at the end of a set of rules.
194 * rules tailored to your needs, you construct the <code>RuleBasedCollator</code>
195 * with the rules contained in a <code>String</code> object. For example:
218 * A new collation rules string can be created by concatenating rules
219 * strings. For example, the rules returned by {@link #getRules()} could
272 * RuleBasedCollator constructor. This takes the table rules and builds
276 * @param rules th
282 RuleBasedCollator(String rules) argument
[all...]
/libcore/ojluni/src/main/java/java/time/
H A DZoneRegion.java71 * A geographical region where the same time-zone rules apply.
73 * Time-zone information is categorized as a set of rules defining when and
74 * how the offset from UTC/Greenwich changes. These rules are accessed using
80 * underlying rules, modeled by {@link ZoneRules}.
81 * The rules are defined by governments and change frequently.
83 * This separation also allows rules to be shared between regions if appropriate.
101 * The time-zone rules, null if zone ID was loaded leniently.
103 private final transient ZoneRules rules; field in class:ZoneRegion
117 ZoneRules rules = null;
120 rules
162 ZoneRegion(String id, ZoneRules rules) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
H A DTCKZoneRulesProvider.java105 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false);
106 assertNotNull(rules);
108 assertEquals(rules2, rules);
142 ZoneRules rules = ZoneRulesProvider.getRules("Europe/London", false);
143 assertEquals(versions.lastEntry().getValue(), rules);
185 final ZoneRules rules = ZoneOffset.of("+01:45").getRules(); field in class:TCKZoneRulesProvider.MockTempProvider
193 result.put("BarVersion", rules);
199 return rules;
H A DTCKZoneRules.java370 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules();
371 assertEquals(rules.size(), 2);
373 ZoneOffsetTransitionRule in = rules.get(0);
384 ZoneOffsetTransitionRule out = rules.get(1);
415 List<ZoneOffsetTransitionRule> rules = test.getTransitionRules();
419 assertEquals(test.nextTransition(last.getInstant()), rules.get(0).createTransition(1998));
422 ZoneOffsetTransition a = rules.get(0).createTransition(year);
423 ZoneOffsetTransition b = rules.get(1).createTransition(year);
424 ZoneOffsetTransition c = rules.get(0).createTransition(year + 1);
436 List<ZoneOffsetTransitionRule> rules
1105 checkOffset(ZoneRules rules, LocalDateTime dateTime, ZoneOffset offset, int type) argument
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestZoneId.java666 private ZoneOffsetTransition checkOffset(ZoneRules rules, LocalDateTime dateTime, ZoneOffset offset, int type) { argument
667 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime);
669 assertEquals(rules.getOffset(dateTime), offset);
674 ZoneOffsetTransition zot = rules.getTransition(dateTime);
/libcore/ojluni/src/main/java/java/util/
H A DSimpleTimeZone.java53 * and end rules for a daylight saving time schedule. Since it only holds
60 * schedule, the schedule can be described with a set of rules,
140 * These parameter rules are also applicable to the set rule methods, such as
162 dstSavings = millisPerHour; // In case user sets rules later
167 * GMT, time zone ID, and rules for starting and ending the daylight
226 * GMT, time zone ID, and rules for starting and ending the daylight
285 * GMT, time zone ID, and rules for starting and ending the daylight
287 * This constructor takes the full set of the start and end rules
802 * advanced with respect to standard time when the daylight saving time rules
820 * respect to standard time when the daylight saving rules ar
1589 unpackRules(byte[] rules) argument
[all...]

Completed in 132 milliseconds