Class OwnedInterval

    • Constructor Detail

      • OwnedInterval

        public OwnedInterval​(OwnedInterval owned)

        Constructor for OwnedInterval.

        Parameters:
        owned - a OwnedInterval object.
      • OwnedInterval

        public OwnedInterval​(TimeInterval interval)

        Constructor for OwnedInterval.

        Parameters:
        interval - a TimeInterval object.
      • OwnedInterval

        public OwnedInterval​(Owner owner,
                             TimeInterval interval)

        Constructor for OwnedInterval.

        Parameters:
        owner - a Owner object.
        interval - a TimeInterval object.
      • OwnedInterval

        public OwnedInterval​(List<Owner> owners,
                             TimeInterval interval)

        Constructor for OwnedInterval.

        Parameters:
        owners - a List object.
        interval - a TimeInterval object.
      • OwnedInterval

        public OwnedInterval​(Date start,
                             Date end)

        Constructor for OwnedInterval.

        Parameters:
        start - a Date object.
        end - a Date object.
      • OwnedInterval

        public OwnedInterval​(Owner owner,
                             Date start,
                             Date end)

        Constructor for OwnedInterval.

        Parameters:
        owner - a Owner object.
        start - a Date object.
        end - a Date object.
      • OwnedInterval

        public OwnedInterval​(List<Owner> owners,
                             Date start,
                             Date end)

        Constructor for OwnedInterval.

        Parameters:
        owners - a List object.
        start - a Date object.
        end - a Date object.
    • Method Detail

      • getOwners

        public List<Owner> getOwners()

        getOwners

        Returns:
        a List object.
      • addOwner

        public void addOwner​(Owner owner)

        addOwner

        Parameters:
        owner - a Owner object.
      • removeOwner

        public void removeOwner​(Owner owner)

        removeOwner

        Parameters:
        owner - a Owner object.
      • addOwners

        public void addOwners​(List<Owner> owners)

        addOwners

        Parameters:
        owners - a List object.
      • removeOwners

        public void removeOwners​(List<Owner> owners)

        removeOwners

        Parameters:
        owners - a List object.
      • isOwner

        public boolean isOwner​(Owner owner)

        isOwner

        Parameters:
        owner - a Owner object.
        Returns:
        a boolean.
      • isOwned

        public boolean isOwned()

        isOwned

        Returns:
        a boolean.
      • hashCode

        public int hashCode()

        hashCode

        Overrides:
        hashCode in class TimeInterval
        Returns:
        a int.