public class AvailabilityPeriodCollection extends AbstractList<AvailabilityPeriod>
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(AvailabilityPeriod item)
Returns true if the specified item is found in this collection; otherwise, false.
|
void |
copyTo(AvailabilityPeriod[] array,
int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
|
AvailabilityPeriod |
get(int index)
Gets the parent
Resource for this object. |
Resource |
getParentResource()
Returns parent
Resource for this object. |
Iterator<AvailabilityPeriod> |
iterator()
Returns an iterator over elements from 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.
|
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.
|
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(AvailabilityPeriod item)
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 void clear()
clear
in interface Collection<AvailabilityPeriod>
clear
in interface List<AvailabilityPeriod>
clear
in class AbstractList<AvailabilityPeriod>
public boolean contains(AvailabilityPeriod item)
Returns true if the specified item is found in this collection; otherwise, false.
item
- the specified item to find.public void copyTo(AvailabilityPeriod[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.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 Resource getParentResource()
Returns parent Resource
for this object.
Resource
object for 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 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 int size()
size
in interface Collection<AvailabilityPeriod>
size
in interface List<AvailabilityPeriod>
size
in class AbstractCollection<AvailabilityPeriod>