Searched refs:validOffsets (Results 1 – 4 of 4) sorted by relevance
144 List<ZoneOffset> validOffsets = rules.getValidOffsets(isoLDT); in ofBest() local146 if (validOffsets.size() == 1) { in ofBest()147 offset = validOffsets.get(0); in ofBest()148 } else if (validOffsets.size() == 0) { in ofBest()153 if (preferredOffset != null && validOffsets.contains(preferredOffset)) { in ofBest()156 offset = validOffsets.get(0); in ofBest()
368 List<ZoneOffset> validOffsets = rules.getValidOffsets(localDateTime); in ofLocal() local370 if (validOffsets.size() == 1) { in ofLocal()371 offset = validOffsets.get(0); in ofLocal()372 } else if (validOffsets.size() == 0) { in ofLocal()377 if (preferredOffset != null && validOffsets.contains(preferredOffset)) { in ofLocal()380 … 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()
1156 List<ZoneOffset> validOffsets = rules.getValidOffsets(dateTime); in checkOffset() local1157 assertEquals(validOffsets.size(), type); in checkOffset()1160 assertEquals(validOffsets.get(0), offset); in checkOffset()