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

Method from

base/src/main/java/net/time4j/TemporalType.java:982–995  ·  view source on GitHub ↗
(Timezone time4j)

Source from the content-addressed store, hash-verified

980 }
981
982 @Override
983 public TimeZone from(Timezone time4j) {
984
985 if (time4j.getHistory() == null) {
986 String id = time4j.getID().canonical();
987 if (id.startsWith(JUT_PROVIDER)) {
988 id = id.substring(JUT_PROVIDER.length());
989 }
990 return TimeZone.getTimeZone(id);
991 } else {
992 return new OldApiTimezone(time4j);
993 }
994
995 }
996
997 @Override
998 public Class<TimeZone> getSourceType() {

Callers

nothing calls this directly

Calls 4

canonicalMethod · 0.65
getHistoryMethod · 0.45
getIDMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected