Package com.aspose.tasks
Class WBSCodeMaskCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.WBSCodeMaskCollection
-
- All Implemented Interfaces:
Iterable<WBSCodeMask>,Collection<WBSCodeMask>,List<WBSCodeMask>
public class WBSCodeMaskCollection extends AbstractList<T>
Represents a collection of WBSCodeMask objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, WBSCodeMask element)Inserts the specified element at the specified position in this list.booleanadd(WBSCodeMask 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.WBSCodeMaskget(int index)intindexOf(Object item)booleanisReadOnly()Gets a value indicating whether this collection is read-only; otherwise, false.Iterator<WBSCodeMask>iterator()Returns an enumerator for this collection.WBSCodeMaskremove(int index)Removes the element at the specified position in this list.booleanremove(Object item)Removes the first occurrence of a specific object from this collection.intsize()Gets the number of elements contained in this collection.voidsort(Comparator<? super T> c)List<WBSCodeMask>toList()Converts a WBSCodeMaskCollection to a list ofWBSCodeMaskobjects.-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, set, 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 boolean add(WBSCodeMask item)
Adds the specified item to this collection.
- Specified by:
addin interfaceCollection<WBSCodeMask>- Specified by:
addin interfaceList<WBSCodeMask>- Overrides:
addin classAbstractList<WBSCodeMask>- Parameters:
item- the specified item to add to this collection.- Returns:
- Returns true is the item was added successfully.
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clearin interfaceCollection<WBSCodeMask>- Specified by:
clearin interfaceList<WBSCodeMask>- Overrides:
clearin classAbstractList<WBSCodeMask>
-
contains
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
- Specified by:
containsin interfaceCollection<WBSCodeMask>- Specified by:
containsin interfaceList<WBSCodeMask>- Overrides:
containsin classAbstractCollection<WBSCodeMask>- Parameters:
item- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
indexOf
public final int indexOf(Object item)
- Specified by:
indexOfin interfaceList<WBSCodeMask>- Overrides:
indexOfin classAbstractList<WBSCodeMask>
-
isReadOnly
public final boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
- Returns:
- a value indicating whether this collection is read-only; otherwise, false.
-
iterator
public final Iterator<WBSCodeMask> iterator()
Returns an enumerator for this collection.
- Specified by:
iteratorin interfaceCollection<WBSCodeMask>- Specified by:
iteratorin interfaceIterable<WBSCodeMask>- Specified by:
iteratorin interfaceList<WBSCodeMask>- Overrides:
iteratorin classAbstractList<WBSCodeMask>- Returns:
- an enumerator 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<WBSCodeMask>- Specified by:
removein interfaceList<WBSCodeMask>- Overrides:
removein classAbstractCollection<WBSCodeMask>- 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()
Gets the number of elements contained in this collection.
- Specified by:
sizein interfaceCollection<WBSCodeMask>- Specified by:
sizein interfaceList<WBSCodeMask>- Specified by:
sizein classAbstractCollection<WBSCodeMask>- Returns:
- the number of elements contained in this collection.
-
toList
public final List<WBSCodeMask> toList()
Converts a WBSCodeMaskCollection to a list of
WBSCodeMaskobjects.- Returns:
- Generic list of
WBSCodeMaskobjects.
-
remove
public WBSCodeMask remove(int index)
Removes the element at the specified position in this list.- Specified by:
removein interfaceList<WBSCodeMask>- Overrides:
removein classAbstractList<WBSCodeMask>- Parameters:
index-- Returns:
-
add
public void add(int index, WBSCodeMask element)Inserts the specified element at the specified position in this list.- Specified by:
addin interfaceList<WBSCodeMask>- Overrides:
addin classAbstractList<WBSCodeMask>- Parameters:
index-element-
-
get
public WBSCodeMask get(int index)
- Specified by:
getin interfaceList<WBSCodeMask>- Specified by:
getin classAbstractList<WBSCodeMask>- Parameters:
index-- Returns:
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-