com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class RateCollection

    • 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.
      • get

        public Rate get(int index)
        (@inheritDoc}
        Specified by:
        get in interface List<Rate>
        Specified by:
        get in class AbstractList<Rate>
        Parameters:
        index -
        Returns:
      • getCount

        @Deprecated
        public int getCount()
        Deprecated. Use size() instead.

        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.

      • remove

        public boolean remove(Object item)
        Removes Rate instance from this collection.
        Specified by:
        remove in interface Collection<Rate>
        Specified by:
        remove in interface List<Rate>
        Overrides:
        remove in class AbstractCollection<Rate>
        Parameters:
        item - Rate instance to remove.
        Returns:
        true if the specified Rate was removed successfully; otherwise, false.
      • remove

        public Rate remove(int index)
        Removes the element at the specified position in this collection and returns the element that was removed from the collection.
        Specified by:
        remove in interface List<Rate>
        Overrides:
        remove in class AbstractList<Rate>
        Parameters:
        index - the specified position to remove the element at.
        Returns:
        the element that was removed from the collection.
      • size

        public int size()

        Returns the number of elements contained in the RateCollection.

        Specified by:
        size in interface Collection<Rate>
        Specified by:
        size in interface List<Rate>
        Specified by:
        size in class AbstractCollection<Rate>
        Returns:
        returns the number of elements contained in this collection.
      • toList

        public List<Rate> toList()

        Converts the RateCollection object to a list of Rate objects.

        Returns:
        List of Rate objects.