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

Method toLong

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

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

()

Source from the content-addressed store, hash-verified

831 * @return the GPathResult, converted to a <code>Long</code>
832 */
833 public Long toLong() {
834 if(textIsEmptyOrNull()){
835 return null;
836 }
837 return StringGroovyMethods.toLong((CharSequence)text());
838 }
839
840 /**
841 * Converts the text of this GPathResult to a Float object.

Callers

nothing calls this directly

Calls 3

textIsEmptyOrNullMethod · 0.95
toLongMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected