MCPcopy Create free account
hub / github.com/careercup/ctci / canFitInSpot

Method canFitInSpot

java/Chapter 8/Question8_4/Car.java:9–11  ·  view source on GitHub ↗
(ParkingSpot spot)

Source from the content-addressed store, hash-verified

7 }
8
9 public boolean canFitInSpot(ParkingSpot spot) {
10 return spot.getSize() == VehicleSize.Large || spot.getSize() == VehicleSize.Compact;
11 }
12
13 public void print() {
14 System.out.print("C");

Callers 1

canFitVehicleMethod · 0.45

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected