com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ReadOnlyCollectionBase<T>

    • Method Detail

      • add

        public final boolean add(T item)

        This is the stub implementation of ICollection's Add method, that only throws UnsupportedOperationException

        Specified by:
        add in interface Collection<T>
        Specified by:
        add in interface List<T>
        Overrides:
        add in class AbstractList<T>
        Parameters:
        item - The item to add.
      • get

        public final T get(int index)

        Returns the element at the specified index.

        Specified by:
        get in interface List<T>
        Specified by:
        get in class AbstractList<T>
        Parameters:
        index - The zero-based index of the element to get.
        Returns:
        the element at the specified index.
      • add

        public final void add(int index,
                              T element)
        Specified by:
        add in interface List<T>
        Overrides:
        add in class AbstractList<T>
        Parameters:
        index -
        element -
      • isReadOnly

        public final boolean isReadOnly()
        Determines, if collection read-only.
        Returns:
        true if collection read-only; false otherwise.
      • remove

        public final T remove(int index)
        Specified by:
        remove in interface List<T>
        Overrides:
        remove in class AbstractList<T>
        Parameters:
        index -
        Returns:
      • set

        public final T set(int index,
                           T value)

        Returns the element at the specified index.

        Specified by:
        set in interface List<T>
        Overrides:
        set in class AbstractList<T>
        Parameters:
        index - The zero-based index of the element to get.
        Returns:
        the element at the specified index.
      • size

        public final int size()

        Gets the number of objects contained in the object.

        Specified by:
        size in interface Collection<T>
        Specified by:
        size in interface List<T>
        Specified by:
        size in class AbstractCollection<T>
        Returns:
        the number of objects contained in the object.
      • toList

        public final List<T> toList()

        Converts the collection object to a list of VbaModule objects.

        Returns:
        List of objects.
      • sort

        public void sort(Comparator<? super T> c)
        Parameters:
        c -