Package com.aspose.tasks
Class GroupCollection
- java.lang.Object
-
- java.util.AbstractCollection<Group>
-
- com.aspose.tasks.GroupCollection
-
- All Implemented Interfaces:
Iterable<Group>,Collection<Group>
public class GroupCollection extends AbstractCollection<Group>
Contains a list of
Groupobjects. Implements ICollection<Group> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Group item)voidclear()booleancontains(Group item)Returns true if this collection contains the specified item.voidcopyTo(Group[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.ProjectgetParentProject()Gets the parent of the Group object.booleanisReadOnly()Gets a value indicating whether this collection is read-only.Iterator<Group>iterator()booleanremove(Group item)Removes the first occurrence of a specific object from this collection.intsize()Gets the number of elements contained in this collection.List<Group>toList()Converts a group collection to a list ofGroupobjects.-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(Group item)
- Specified by:
addin interfaceCollection<Group>- Overrides:
addin classAbstractCollection<Group>
-
clear
public final void clear()
- Specified by:
clearin interfaceCollection<Group>- Overrides:
clearin classAbstractCollection<Group>
-
contains
public final boolean contains(Group item)
Returns true if this collection contains the specified item.- Parameters:
item- the specified item.- Returns:
- true if the collection contains the specified item.
-
copyTo
public final void copyTo(Group[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
- Parameters:
array- the specified one-dimensional array to copy elements toarrayIndex- the zero-based index of the specified array at which copying begins.
-
getParentProject
public final Project getParentProject()
Gets the parent of the Group object. Read-only
Project.- Returns:
- the parent of the Group object.
-
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.
-
iterator
public Iterator<Group> iterator()
- Specified by:
iteratorin interfaceCollection<Group>- Specified by:
iteratorin interfaceIterable<Group>- Specified by:
iteratorin classAbstractCollection<Group>
-
remove
public final boolean remove(Group item)
Removes the first occurrence of a specific object from this collection.
- Parameters:
item- the specified object to remove.- Returns:
- true if the specified object was successfully removed from this collection; otherwise, false.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
sizein interfaceCollection<Group>- Specified by:
sizein classAbstractCollection<Group>- Returns:
- the number of elements contained in this collection.
-
-