Searched refs:validOffsets (Results 1 – 4 of 4) sorted by relevance
143 List<ZoneOffset> validOffsets = rules.getValidOffsets(isoLDT); in ofBest() local145 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()
367 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal() local369 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()
667 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime); in checkOffset() local668 assertEquals(validOffsets.size(), type); in checkOffset()671 assertEquals(validOffsets.get(0), offset); in checkOffset()
1108 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime); in checkOffset() local1109 assertEquals(validOffsets.size(), type); in checkOffset()1112 assertEquals(validOffsets.get(0), offset); in checkOffset()