Class VbaModuleCollection

    • Method Detail

      • addItem

        public final void addItem​(VbaModule item)

        Add the specified module to this collection.

        Parameters:
        item - the specified module which should be added to this collection.
      • contains

        public final boolean contains​(VbaModule item)

        Checks if collection contains specified item.

        Parameters:
        item - The item to check.
        Returns:
        true, if collection contains an item, false otherwise.
      • get

        public final VbaModule get​(String moduleName)

        Gets the module with the specified name.

        Parameters:
        moduleName - The name of the module to get.
        Returns:
        the module instance
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether this collection is read only.

        Returns:
        a value indicating whether this collection is read only.
      • removeItem

        public final void removeItem​(VbaModule item)

        Removes module from the collection.

        Parameters:
        item - the module to be removed
      • remove

        public final boolean remove​(VbaModule item)

        Removes newly added module from the collection.

        Parameters:
        item - the module to be removed
        Returns:
        a value indicating whether the module was removed
      • toList

        public final List<VbaModule> 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 -