MCPcopy Create free account
hub / github.com/MenoData/Time4J / from

Method from

base/src/main/java/net/time4j/DayPeriod.java:743–752  ·  view source on GitHub ↗
(
            Locale locale,
            AttributeQuery attributes
        )

Source from the content-addressed store, hash-verified

741 }
742
743 private static DayPeriod from(
744 Locale locale,
745 AttributeQuery attributes
746 ) {
747 if (attributes.contains(CUSTOM)) {
748 return attributes.get(CUSTOM);
749 }
750
751 return DayPeriod.of(locale, attributes.get(Attributes.CALENDAR_TYPE, CalendarText.ISO_CALENDAR_TYPE));
752 }
753 }
754
755 static class Element

Callers 2

getElementsMethod · 0.95
resolveMethod · 0.95

Calls 3

ofMethod · 0.95
containsMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected