MCPcopy Create free account
hub / github.com/antlr/codebuff / sizeIfKnown

Method sizeIfKnown

output/java_guava/1.4.19/Files.java:127–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 @Override
128 public Optional<Long> sizeIfKnown() {
129 if (file.isFile()) {
130 return Optional.of(file.length());
131 } else {
132 return Optional.absent();
133 }
134 }
135
136 @Override
137 public long size() throws IOException {

Callers

nothing calls this directly

Calls 4

ofMethod · 0.95
absentMethod · 0.95
isFileMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected