Package net.commuty.parking.model
Class ParkingSpot
java.lang.Object
net.commuty.parking.model.ParkingSpot
Defines a parking spot
-
Constructor Summary
ConstructorsConstructorDescriptionParkingSpot(UUID id, String name, String displayName, boolean evCharger, boolean visitorSpot, boolean forCarpoolersOnly, boolean forDisabled, boolean large) -
Method Summary
-
Constructor Details
-
ParkingSpot
-
-
Method Details
-
getId
-
getName
- Returns:
- its name as defined by the company. This name is used for management.
-
getDisplayName
- Returns:
- its name as displayed to the end-user. It can be the `name` itself or another name (e.g. a zone name, a level name, etc).
-
isEvCharger
public boolean isEvCharger()- Returns:
- whether this parking spot has an ev charger or not.
-
isVisitorSpot
public boolean isVisitorSpot()- Returns:
- whether this parking spot is dedicated to visitors or not.
-
isForCarpoolersOnly
public boolean isForCarpoolersOnly()- Returns:
- whether this parking spot is dedicated to carpoolers or not.
-
isForDisabled
public boolean isForDisabled()- Returns:
- whether this parking spot is dedicated to people with reduced mobility or not.
-
isLarge
public boolean isLarge()- Returns:
- whether this parking spot is large or not.
-
equals
-
hashCode
public int hashCode() -
toString
-