Package com.aspose.tasks
Class ExtendedAttributeCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.ExtendedAttributeCollection
-
- All Implemented Interfaces:
Iterable<ExtendedAttribute>
,Collection<ExtendedAttribute>
,List<ExtendedAttribute>
public class ExtendedAttributeCollection extends AbstractList<T>
Represents a collection of
ExtendedAttribute
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(ExtendedAttribute item)
Adds the specified item to this collection.void
clear()
Removes all items from this collection.boolean
contains(ExtendedAttribute item)
Returns true if the specified item is found in this collection; otherwise, false.void
copyTo(ExtendedAttribute[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.ExtendedAttribute
get(int index)
Gets the element at the specified index.int
indexOf(ExtendedAttribute item)
Determines the index of the specified item in this collection.void
insert(int index, ExtendedAttribute item)
Inserts the specified item at the specified index.Iterator<ExtendedAttribute>
iterator()
Returns an iterator over elements from this collection.ExtendedAttribute
remove(int index)
Removes an item at the specified index.boolean
remove(Object item)
Removes the element from the collection.ExtendedAttribute
set(int index, ExtendedAttribute value)
Replaces the element at the specified position in this list with the specified element.int
size()
Gets the number of elements contained in this collection.void
sort(Comparator<? super T> c)
-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, 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, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(ExtendedAttribute item)
Adds the specified item to this collection.
- Specified by:
add
in interfaceCollection<ExtendedAttribute>
- Specified by:
add
in interfaceList<ExtendedAttribute>
- Overrides:
add
in classAbstractList<ExtendedAttribute>
- 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:
clear
in interfaceCollection<ExtendedAttribute>
- Specified by:
clear
in interfaceList<ExtendedAttribute>
- Overrides:
clear
in classAbstractList<ExtendedAttribute>
-
contains
public final boolean contains(ExtendedAttribute item)
Returns true if the specified item is found in this collection; otherwise, false.
- Parameters:
item
- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
copyTo
public final void copyTo(ExtendedAttribute[] 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.
-
get
public final ExtendedAttribute get(int index)
Gets the element at the specified index.
- Specified by:
get
in interfaceList<ExtendedAttribute>
- Specified by:
get
in classAbstractList<ExtendedAttribute>
- Parameters:
index
- The zero-based index of the element to get or set.- Returns:
- the element at the specified index.
-
indexOf
public final int indexOf(ExtendedAttribute item)
Determines the index of the specified item in this collection.
- Parameters:
item
- the specified item to locate in this collection.- Returns:
- the index of the specified item if found; otherwise, -1.
-
insert
public final void insert(int index, ExtendedAttribute item)
Inserts the specified item at the specified index.
- Parameters:
index
- the specified zero-based index at which the item should be inserted.item
- the specified item to insert to this collection.
-
iterator
public Iterator<ExtendedAttribute> iterator()
Returns an iterator over elements from this collection.- Specified by:
iterator
in interfaceCollection<ExtendedAttribute>
- Specified by:
iterator
in interfaceIterable<ExtendedAttribute>
- Specified by:
iterator
in interfaceList<ExtendedAttribute>
- Overrides:
iterator
in classAbstractList<ExtendedAttribute>
- Returns:
- an iterator over elements from this collection.
-
remove
public final boolean remove(Object item)
Removes the element from the collection.- Specified by:
remove
in interfaceCollection<ExtendedAttribute>
- Specified by:
remove
in interfaceList<ExtendedAttribute>
- Overrides:
remove
in classAbstractCollection<ExtendedAttribute>
- Parameters:
item
- the element to remove.- Returns:
- true if element was removed from the collection; otherwise false.
-
remove
public final ExtendedAttribute remove(int index)
Removes an item at the specified index.
- Specified by:
remove
in interfaceList<ExtendedAttribute>
- Overrides:
remove
in classAbstractList<ExtendedAttribute>
- Parameters:
index
- the specified zero-based index to remove an item at.- Returns:
- the element that was removed from the collection.
-
set
public final ExtendedAttribute set(int index, ExtendedAttribute value)
Replaces the element at the specified position in this list with the specified element.- Specified by:
set
in interfaceList<ExtendedAttribute>
- Overrides:
set
in classAbstractList<ExtendedAttribute>
- Parameters:
index
- the specified position to replace element at.value
- the specified element to replace the element at the specified position.- Returns:
- the element replaced by the specified element at the specified position.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
size
in interfaceCollection<ExtendedAttribute>
- Specified by:
size
in interfaceList<ExtendedAttribute>
- Specified by:
size
in classAbstractCollection<ExtendedAttribute>
- Returns:
- the number of elements contained in this collection.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-