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
ExtendedAttributeobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ExtendedAttribute item)Adds the specified item to this collection.voidclear()Removes all items from this collection.booleancontains(ExtendedAttribute item)Returns true if the specified item is found in this collection; otherwise, false.voidcopyTo(ExtendedAttribute[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.ExtendedAttributeget(int index)Gets the element at the specified index.intindexOf(ExtendedAttribute item)Determines the index of the specified item in this collection.voidinsert(int index, ExtendedAttribute item)Inserts the specified item at the specified index.Iterator<ExtendedAttribute>iterator()Returns an iterator over elements from this collection.ExtendedAttributeremove(int index)Removes an item at the specified index.booleanremove(Object item)Removes the element from the collection.ExtendedAttributeset(int index, ExtendedAttribute value)Replaces the element at the specified position in this list with the specified element.intsize()Gets the number of elements contained in this collection.voidsort(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:
addin interfaceCollection<ExtendedAttribute>- Specified by:
addin interfaceList<ExtendedAttribute>- Overrides:
addin 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:
clearin interfaceCollection<ExtendedAttribute>- Specified by:
clearin interfaceList<ExtendedAttribute>- Overrides:
clearin 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:
getin interfaceList<ExtendedAttribute>- Specified by:
getin 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:
iteratorin interfaceCollection<ExtendedAttribute>- Specified by:
iteratorin interfaceIterable<ExtendedAttribute>- Specified by:
iteratorin interfaceList<ExtendedAttribute>- Overrides:
iteratorin 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:
removein interfaceCollection<ExtendedAttribute>- Specified by:
removein interfaceList<ExtendedAttribute>- Overrides:
removein 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:
removein interfaceList<ExtendedAttribute>- Overrides:
removein 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:
setin interfaceList<ExtendedAttribute>- Overrides:
setin 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:
sizein interfaceCollection<ExtendedAttribute>- Specified by:
sizein interfaceList<ExtendedAttribute>- Specified by:
sizein classAbstractCollection<ExtendedAttribute>- Returns:
- the number of elements contained in this collection.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-