public class AvailabilityPeriodCollection extends AbstractList<T>
Represents a collection which contains AvailabilityPeriod
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(AvailabilityPeriod item)
Adds the specified item to this collection.
|
void |
clear()
Removes all the elements from this collection.
|
boolean |
contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
|
AvailabilityPeriod |
get(int index)
Gets the parent
Resource for this object. |
Resource |
getParentResource()
Gets the parent
Resource for this object. |
int |
indexOf(Object item)
Determines the index of the specified item in this collection.
|
Iterator<AvailabilityPeriod> |
iterator()
Returns an iterator for this collection.
|
AvailabilityPeriod |
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from
the collection.
|
boolean |
remove(Object item)
Removes the first occurrence of a specific object from this collection.
|
AvailabilityPeriod |
set(int index,
AvailabilityPeriod item)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Returns the number of elements in this collection.
|
void |
sort(Comparator<? super T> c) |
add, addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(AvailabilityPeriod item)
Adds the specified item to this collection.
add
in interface Collection<AvailabilityPeriod>
add
in interface List<AvailabilityPeriod>
add
in class AbstractList<AvailabilityPeriod>
item
- the specified item to add to this collection.public final void clear()
clear
in interface Collection<AvailabilityPeriod>
clear
in interface List<AvailabilityPeriod>
clear
in class AbstractList<AvailabilityPeriod>
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
contains
in interface Collection<AvailabilityPeriod>
contains
in interface List<AvailabilityPeriod>
contains
in class AbstractCollection<AvailabilityPeriod>
item
- the specified item to find.public final Resource getParentResource()
Gets the parent Resource
for this object.
Resource
object for this collection.public final int indexOf(Object item)
Determines the index of the specified item in this collection.
indexOf
in interface List<AvailabilityPeriod>
indexOf
in class AbstractList<AvailabilityPeriod>
item
- the specified item to locate in this collection.public Iterator<AvailabilityPeriod> iterator()
iterator
in interface Iterable<AvailabilityPeriod>
iterator
in interface Collection<AvailabilityPeriod>
iterator
in interface List<AvailabilityPeriod>
iterator
in class AbstractList<AvailabilityPeriod>
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
remove
in interface Collection<AvailabilityPeriod>
remove
in interface List<AvailabilityPeriod>
remove
in class AbstractCollection<AvailabilityPeriod>
item
- the specified object to remove.public final int size()
size
in interface Collection<AvailabilityPeriod>
size
in interface List<AvailabilityPeriod>
size
in class AbstractCollection<AvailabilityPeriod>
public AvailabilityPeriod get(int index)
Gets the parent Resource
for this object.
get
in interface List<AvailabilityPeriod>
get
in class AbstractList<AvailabilityPeriod>
index
- specified position to getInternal element at.public AvailabilityPeriod remove(int index)
remove
in interface List<AvailabilityPeriod>
remove
in class AbstractList<AvailabilityPeriod>
index
- the specified position to remove the element at.public AvailabilityPeriod set(int index, AvailabilityPeriod item)
set
in interface List<AvailabilityPeriod>
set
in class AbstractList<AvailabilityPeriod>
index
- the specified position to replace element at.item
- the specified element to replace the element at the specified position.public void sort(Comparator<? super T> c)
c
- Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.