Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ isAvailable
Method
isAvailable
java/Chapter 8/Question8_4/ParkingSpot.java:17–19 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
}
16
17
public
boolean isAvailable() {
18
return
vehicle == null;
19
}
20
21
/* Checks
if
the spot is big enough
for
the vehicle (and is available). This compares
22
* the SIZE only. It does not check
if
it has enough spots. */
Callers
1
canFitVehicle
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected