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

Method sizeIfKnown

output/java_guava/1.4.17/ByteSource.java:181–184  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

179 */
180
181 @Beta
182 public Optional<Long> sizeIfKnown() {
183 return Optional.absent();
184 }
185
186 /**
187 * Returns the size of this source in bytes, even if doing so requires opening and traversing an

Callers 4

isEmptyMethod · 0.95
sizeMethod · 0.95
sizeIfKnownMethod · 0.45
sizeIfKnownMethod · 0.45

Calls 1

absentMethod · 0.95

Tested by

no test coverage detected