Class PlanItProjectInput.ProjectZonings

  • Enclosing class:
    PlanItProjectInput

    public class PlanItProjectInput.ProjectZonings
    extends Object
    Internal class for registered zonings
    • Constructor Detail

      • ProjectZonings

        public ProjectZonings()
    • Method Detail

      • toList

        public List<Zoning> toList()
        Returns a List of zoning
        Returns:
        List of zoning
      • getZoning

        public Zoning getZoning​(long id)
        Get zoning by id
        Parameters:
        id - the id of the zoning
        Returns:
        the retrieved zoning
      • getNumberOfZonings

        public int getNumberOfZonings()
        Get the number of zonings
        Returns:
        the number of zonings in the project
      • hasRegisteredZonings

        public boolean hasRegisteredZonings()
        Check if zonings have already been registered
        Returns:
        true if registered zonings exist, false otherwise
      • getFirstZoning

        public Zoning getFirstZoning()
        Collect the first zonings that are registered (if any). Otherwise return null
        Returns:
        first zonings that are registered if none return null