MCPcopy Index your code
hub / github.com/apache/groovy / toInteger

Method toInteger

src/main/java/groovy/util/Node.java:821–826  ·  view source on GitHub ↗

Converts the text of this GPathResult to an Integer object. @return the GPathResult, converted to a Integer

()

Source from the content-addressed store, hash-verified

819 * @return the GPathResult, converted to a <code>Integer</code>
820 */
821 public Integer toInteger() {
822 if(textIsEmptyOrNull()){
823 return null;
824 }
825 return StringGroovyMethods.toInteger((CharSequence)text());
826 }
827
828 /**
829 * Converts the text of this GPathResult to a Long object.

Callers

nothing calls this directly

Calls 3

textIsEmptyOrNullMethod · 0.95
toIntegerMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected