Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
of
Method · 0.95
absent
Method · 0.95
isFile
Method · 0.45
length
Method · 0.45
Tested by
no test coverage detected