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

Method registerUnits

base/src/main/java/net/time4j/PlainTime.java:2029–2041  ·  view source on GitHub ↗
(TimeAxis.Builder<IsoTimeUnit, PlainTime> builder)

Source from the content-addressed store, hash-verified

2027 }
2028
2029 private static void registerUnits(TimeAxis.Builder<IsoTimeUnit, PlainTime> builder) {
2030
2031 Set<ClockUnit> convertibles = EnumSet.allOf(ClockUnit.class);
2032
2033 for (ClockUnit unit : ClockUnit.values()) {
2034 builder.appendUnit(
2035 unit,
2036 new ClockUnitRule(unit),
2037 unit.getLength(),
2038 convertibles);
2039 }
2040
2041 }
2042
2043 private static long floorMod(
2044 long value,

Callers 1

PlainTimeClass · 0.95

Calls 3

appendUnitMethod · 0.80
getLengthMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected