MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / isPrimitive

Method isPrimitive

src/me/lpk/util/StringUtils.java:186–194  ·  view source on GitHub ↗

Checks if a description is just a primitive. @param description @return

(String description)

Source from the content-addressed store, hash-verified

184 * @return
185 */
186 private static boolean isPrimitive(String description) {
187 String x = asmTrim(description);
188 if (x.length() == 0) {
189 return true;
190 } else if (x.equals("Z") || x.equals("J") || x.equals("I") || x.equals("F") || x.equals("D") || x.equals("C") || x.equals("T") || x.equals("G")) {
191 return true;
192 }
193 return false;
194 }
195
196 /**
197 * Checks if a given string is an IP address.

Callers 2

fixDescMethod · 0.95
fixDescReverseMethod · 0.95

Calls 2

asmTrimMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected