MCPcopy Create free account
hub / github.com/boxbeam/RedLib / create

Method create

src/redempt/redlib/config/ConfigType.java:26–31  ·  view source on GitHub ↗

Creates a ConfigType from an arbitrary Type @param type The Type @return A ConfigType representation of the Type

(Type type)

Source from the content-addressed store, hash-verified

24 * @return A ConfigType representation of the Type
25 */
26 public static ConfigType<?> create(Type type) {
27 if (type instanceof Class) {
28 return create((Class<?>) type, new ArrayList<>());
29 }
30 return create(type.getTypeName());
31 }
32
33 /**
34 * Gets the ConfigType of a specific Field

Callers 1

getMethod · 0.95

Calls 6

splitOnCommaMethod · 0.95
getTypeNameMethod · 0.80
indexOfMethod · 0.80
mapMethod · 0.80
streamMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected