Package com.aspose.tasks
Class AvailabilityPeriodCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.AvailabilityPeriodCollection
-
- All Implemented Interfaces:
Iterable<AvailabilityPeriod>,Collection<AvailabilityPeriod>,List<AvailabilityPeriod>
public class AvailabilityPeriodCollection extends AbstractList<T>
Represents a collection which contains
AvailabilityPeriodobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(AvailabilityPeriod item)Adds the specified item to this collection.voidclear()Removes all items from this collection.booleancontains(Object item)Returns true if the specified item is found in this collection; otherwise, false.AvailabilityPeriodget(int index)Gets the parentResourcefor this object.ResourcegetParentResource()Gets the parentResourcefor this object.intindexOf(Object item)Determines the index of the specified item in this collection.Iterator<AvailabilityPeriod>iterator()Returns an iterator for this collection.AvailabilityPeriodremove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.booleanremove(Object item)Removes the first occurrence of a specific object from this collection.AvailabilityPeriodset(int index, AvailabilityPeriod item)Replaces the element at the specified position in this list with the specified element.intsize()Returns the number of elements in this collection.voidsort(Comparator<? super T> c)-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(AvailabilityPeriod item)
Adds the specified item to this collection.
- Specified by:
addin interfaceCollection<AvailabilityPeriod>- Specified by:
addin interfaceList<AvailabilityPeriod>- Overrides:
addin classAbstractList<AvailabilityPeriod>- Parameters:
item- the specified item to add to this collection.- Returns:
- true if the specified item was added successfully; otherwise, false.
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clearin interfaceCollection<AvailabilityPeriod>- Specified by:
clearin interfaceList<AvailabilityPeriod>- Overrides:
clearin classAbstractList<AvailabilityPeriod>
-
contains
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
- Specified by:
containsin interfaceCollection<AvailabilityPeriod>- Specified by:
containsin interfaceList<AvailabilityPeriod>- Overrides:
containsin classAbstractCollection<AvailabilityPeriod>- Parameters:
item- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
getParentResource
public final Resource getParentResource()
Gets the parent
Resourcefor this object.- Returns:
- Parent
Resourceobject for this collection.
-
indexOf
public final int indexOf(Object item)
Determines the index of the specified item in this collection.
- Specified by:
indexOfin interfaceList<AvailabilityPeriod>- Overrides:
indexOfin classAbstractList<AvailabilityPeriod>- Parameters:
item- the specified item to locate in this collection.- Returns:
- the index of the specified item if found; otherwise, -1.
-
iterator
public Iterator<AvailabilityPeriod> iterator()
Returns an iterator for this collection.- Specified by:
iteratorin interfaceCollection<AvailabilityPeriod>- Specified by:
iteratorin interfaceIterable<AvailabilityPeriod>- Specified by:
iteratorin interfaceList<AvailabilityPeriod>- Overrides:
iteratorin classAbstractList<AvailabilityPeriod>- Returns:
- an iterator for this collection.
-
remove
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
- Specified by:
removein interfaceCollection<AvailabilityPeriod>- Specified by:
removein interfaceList<AvailabilityPeriod>- Overrides:
removein classAbstractCollection<AvailabilityPeriod>- 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()
Returns the number of elements in this collection.- Specified by:
sizein interfaceCollection<AvailabilityPeriod>- Specified by:
sizein interfaceList<AvailabilityPeriod>- Specified by:
sizein classAbstractCollection<AvailabilityPeriod>- Returns:
- the number of elements in this collection.
-
get
public AvailabilityPeriod get(int index)
Gets the parent
Resourcefor this object.- Specified by:
getin interfaceList<AvailabilityPeriod>- Specified by:
getin classAbstractList<AvailabilityPeriod>- Parameters:
index- specified position to getInternal element at.- Returns:
- the element at the specified position in this collection.
-
remove
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.- Specified by:
removein interfaceList<AvailabilityPeriod>- Overrides:
removein classAbstractList<AvailabilityPeriod>- Parameters:
index- the specified position to remove the element at.- Returns:
- the element that was removed from the collection.
-
set
public AvailabilityPeriod set(int index, AvailabilityPeriod item)
Replaces the element at the specified position in this list with the specified element.- Specified by:
setin interfaceList<AvailabilityPeriod>- Overrides:
setin classAbstractList<AvailabilityPeriod>- Parameters:
index- the specified position to replace element at.item- the specified element to replace the element at the specified position.- Returns:
- the element replaced by the specified element at the specified position.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-