Class ParkingSpot

java.lang.Object
net.commuty.parking.model.ParkingSpot

public class ParkingSpot extends Object
Defines a parking spot
  • Constructor Details

    • ParkingSpot

      public ParkingSpot(UUID id, String name, String displayName, boolean evCharger, boolean visitorSpot, boolean forCarpoolersOnly, boolean forDisabled, boolean large)
  • Method Details

    • getId

      public UUID getId()
    • getName

      public String getName()
      Returns:
      its name as defined by the company. This name is used for management.
    • getDisplayName

      public String 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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object