Home
last modified time | relevance | path

Searched refs:validOffsets (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoZonedDateTimeImpl.java143 List<ZoneOffset> validOffsets = rules.getValidOffsets(isoLDT); in ofBest() local
145 if (validOffsets.size() == 1) { in ofBest()
146 offset = validOffsets.get(0); in ofBest()
147 } else if (validOffsets.size() == 0) { in ofBest()
152 if (preferredOffset != null && validOffsets.contains(preferredOffset)) { in ofBest()
155 offset = validOffsets.get(0); in ofBest()
/libcore/ojluni/src/main/java/java/time/
DZonedDateTime.java367 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal() local
369 if (validOffsets.size() == 1) { in ofLocal()
370 offset = validOffsets.get(0); in ofLocal()
371 } else if (validOffsets.size() == 0) { in ofLocal()
376 if (preferredOffset != null && validOffsets.contains(preferredOffset)) { in ofLocal()
379 … offset = Objects.requireNonNull(validOffsets.get(0), "offset"); // protect against bad ZoneRules in ofLocal()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java667 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime); in checkOffset() local
668 assertEquals(validOffsets.size(), type); in checkOffset()
671 assertEquals(validOffsets.get(0), offset); in checkOffset()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java1108 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime); in checkOffset() local
1109 assertEquals(validOffsets.size(), type); in checkOffset()
1112 assertEquals(validOffsets.get(0), offset); in checkOffset()