MCPcopy Create free account
hub / github.com/e2wugui/zeze / getStableName

Method getStableName

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Reflect.java:134–142  ·  view source on GitHub ↗
(@NotNull Class<?> cls)

Source from the content-addressed store, hash-verified

132 }
133
134 public static @NotNull String getStableName(@NotNull Class<?> cls) {
135 // 支持的 Zeze/Gen/Types/ 类型。
136 var name = stableNameMap.get(cls);
137 if (name != null)
138 return name;
139 if (Serializable.class.isAssignableFrom(cls))
140 return cls.getName();
141 throw new UnsupportedOperationException("Unsupported type: " + cls.getName());
142 }
143
144 public static @NotNull String getStableName(@NotNull Class<?> cls, @NotNull Class<?> tplCls) {
145 return cls.getName() + '<' + getStableName(tplCls) + '>';

Callers 6

CollMap2Method · 0.95
CollMap1Method · 0.95
CollList1Method · 0.95
CollList2Method · 0.95
CollSet1Method · 0.95
hashLogMethod · 0.95

Calls 2

getMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected