Package com.aspose.tasks
Class VbaModuleCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.VbaModuleCollection
-
public class VbaModuleCollection extends AbstractList<T>
Represents a collection of
VbaModuleobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(VbaModule item)Add the specified module to this collection.voidclear()booleancontains(VbaModule item)Checks if collection contains specified item.VbaModuleget(int index)Gets the module at the specified index.VbaModuleget(String moduleName)Gets the module with the specified name.booleanisReadOnly()Gets a value indicating whether this collection is read only.Iterator<VbaModule>iterator()Returns an enumerator for this collection.booleanremove(VbaModule item)Removes newly added module from the collection.voidremoveItem(VbaModule item)Removes module from the collection.intsize()Gets the number of modules contained in the collection.voidsort(Comparator<? super T> c)List<VbaModule>toList()Converts the collection object to a list ofVbaModuleobjects.-
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
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.
-
clear
public final void clear()
- Specified by:
clearin interfaceCollection<VbaModule>- Specified by:
clearin interfaceList<VbaModule>- Overrides:
clearin classAbstractList<VbaModule>
-
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(int index)
Gets the module at the specified index.
-
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
-
size
public final int size()
Gets the number of modules contained in the collection.
- Specified by:
sizein interfaceCollection<VbaModule>- Specified by:
sizein interfaceList<VbaModule>- Specified by:
sizein classAbstractCollection<VbaModule>- Returns:
- the number of modules contained in the collection.
-
toList
public final List<VbaModule> toList()
Converts the collection object to a list of
VbaModuleobjects.- Returns:
- List of objects.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-