Class PlanItProjectInput.ProjectDemands

  • Enclosing class:
    PlanItProjectInput

    public class PlanItProjectInput.ProjectDemands
    extends Object
    Internal class for registered demands
    • Constructor Detail

      • ProjectDemands

        public ProjectDemands()
    • Method Detail

      • toList

        public List<Demands> toList()
        Returns a List of demands
        Returns:
        List of demands
      • getDemands

        public Demands getDemands​(long id)
        Get demands by id
        Parameters:
        id - the id of the demands
        Returns:
        the retrieved demands
      • getNumberOfDemands

        public int getNumberOfDemands()
        Get the number of demands
        Returns:
        the number of demands in the project
      • hasRegisteredDemands

        public boolean hasRegisteredDemands()
        Check if demands have already been registered
        Returns:
        true if registered demands exist, false otherwise
      • getFirstDemands

        public Demands getFirstDemands()
        Collect the first demands that are registered (if any). Otherwise return null
        Returns:
        first demands that are registered if none return null