AvailabilityPeriodCollection
Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList
public class AvailabilityPeriodCollection extends AbstractList<AvailabilityPeriod>
Represents a collection which contains AvailabilityPeriod objects.
Methods
Method | Description |
---|---|
add(AvailabilityPeriod item) | Adds the specified item to this collection. |
clear() | Removes all items from this collection. |
contains(Object item) | Returns true if the specified item is found in this collection; otherwise, false. |
get(int index) | Gets the parent Resource for this object. |
getParentResource() | Gets the parent Resource for this object. |
indexOf(Object item) | Determines the index of the specified item in this collection. |
iterator() | Returns an iterator for this collection. |
remove(int index) | Removes the element at the specified position in this collection and returns the element that was removed from the collection. |
remove(Object item) | Removes the first occurrence of a specific object from this collection. |
set(int index, AvailabilityPeriod item) | Replaces the element at the specified position in this list with the specified element. |
size() | Returns the number of elements in this collection. |
add(AvailabilityPeriod item)
public final boolean add(AvailabilityPeriod item)
Adds the specified item to this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | AvailabilityPeriod | the specified item to add to this collection. |
Returns: boolean - true if the specified item was added successfully; otherwise, false.
clear()
public final void clear()
Removes all items from this collection.
contains(Object item)
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | the specified item to find. |
Returns: boolean - true if the specified item is found in this collection; otherwise, false.
get(int index)
public AvailabilityPeriod get(int index)
Gets the parent Resource for this object.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | specified position to getInternal element at. |
Returns: AvailabilityPeriod - the element at the specified position in this collection.
getParentResource()
public final Resource getParentResource()
Gets the parent Resource for this object.
Returns: Resource - Parent Resource object for this collection.
indexOf(Object item)
public final int indexOf(Object item)
Determines the index of the specified item in this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | the specified item to locate in this collection. |
Returns: int - the index of the specified item if found; otherwise, -1.
iterator()
public Iterator<AvailabilityPeriod> iterator()
Returns an iterator for this collection.
Returns: java.util.Iterator<com.aspose.tasks.AvailabilityPeriod> - an iterator for this collection.
remove(int index)
public AvailabilityPeriod remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | the specified position to remove the element at. |
Returns: AvailabilityPeriod - the element that was removed from the collection.
remove(Object item)
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | java.lang.Object | the specified object to remove. |
Returns: boolean - true if the specified object was successfully removed from this collection; otherwise, false.
set(int index, AvailabilityPeriod item)
public AvailabilityPeriod set(int index, AvailabilityPeriod item)
Replaces the element at the specified position in this list with the specified element.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | the specified position to replace element at. |
item | AvailabilityPeriod | the specified element to replace the element at the specified position. |
Returns: AvailabilityPeriod - the element replaced by the specified element at the specified position.
size()
public final int size()
Returns the number of elements in this collection.
Returns: int - the number of elements in this collection.