MCPcopy Index your code
hub / github.com/antlr/codebuff / lengthIfKnown

Method lengthIfKnown

output/java_guava/1.4.17/CharSource.java:135–138  ·  view source on GitHub ↗

Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream. The default implementation returns Optional#absent. Some sources, such as a CharSequence, may return a non-absent value. Note that in such cases, it is poss

()

Source from the content-addressed store, hash-verified

133 */
134
135 @Beta
136 public Optional<Long> lengthIfKnown() {
137 return Optional.absent();
138 }
139
140 /**
141 * Returns the length of this source in chars, even if doing so requires opening and traversing an

Callers 3

lengthMethod · 0.95
isEmptyMethod · 0.95
lengthIfKnownMethod · 0.45

Calls 1

absentMethod · 0.95

Tested by

no test coverage detected