com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class RateCollection

  • All Implemented Interfaces:
    Iterable<Rate>


    public class RateCollection
    extends Object
    implements Iterable<Rate>

    Represents a collection which contains Rate objects.

    • Method Detail

      • add

        public Rate add(Date ratesFrom)

        Adds a new Rate instance to this collection.

        Parameters:
        ratesFrom - The date the new rate comes into effect.
        Returns:
        Added Rate instance.
      • remove

        public boolean remove(Rate item)

        Removes Rate instance from this collection.

        Parameters:
        item - Rate instance to remove.
        Returns:
        true if the specified Rate was removed successfully; otherwise, false.
      • toList

        public List<Rate> toList()

        Converts the RateCollection object to a list of Rate objects.

        Returns:
        List of Rate objects.
      • getCount

        public int getCount()

        Returns the number of elements contained in the RateCollection. Read-only int.

        Returns:
        returns the number of elements contained in this collection.
      • getParentResource

        public Resource getParentResource()

        Returns parent Resource object for this collection.

        Returns:
        Resource instance which is parent for this object.

        Read-only Resource object.