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
Group
objects. Implements ICollection<Group> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
add(Group item)
void
clear()
boolean
contains(Group item)
Returns true if this collection contains the specified item.void
copyTo(Group[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.Project
getParentProject()
Deprecated.This member is obsolete and will be removed after the release 23.3.boolean
isReadOnly()
Gets a value indicating whether this collection is read-only.Iterator<Group>
iterator()
boolean
remove(Group item)
Removes the first occurrence of a specific object from this collection.int
size()
Gets the number of elements contained in this collection.List<Group>
toList()
Converts a group collection to a list ofGroup
objects.-
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:
add
in interfaceCollection<Group>
- Overrides:
add
in classAbstractCollection<Group>
-
clear
public final void clear()
- Specified by:
clear
in interfaceCollection<Group>
- Overrides:
clear
in 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
@Deprecated public final Project getParentProject()
Deprecated.This member is obsolete and will be removed after the release 23.3.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:
iterator
in interfaceCollection<Group>
- Specified by:
iterator
in interfaceIterable<Group>
- Specified by:
iterator
in 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:
size
in interfaceCollection<Group>
- Specified by:
size
in classAbstractCollection<Group>
- Returns:
- the number of elements contained in this collection.
-
-