java.lang.Object
com.aspose.cells.CollectionBase
- All Implemented Interfaces:
- java.lang.Iterable
- Direct Known Subclasses:
- CellWatchCollection, ChartCollection, CheckBoxCollection, ColumnCollection, CommentCollection, ConditionalFormattingCollection, ConditionalFormattingIconCollection, ConditionalFormattingValueCollection, ConnectionParameterCollection, ContentTypePropertyCollection, CustomFilterCollection, CustomPropertyCollection, CustomXmlPartCollection, DataSorterKeyCollection, DxfCollection, ErrorCheckOptionCollection, ExternalConnectionCollection, FilterColumnCollection, FontSettingCollection, GradientStopCollection, HorizontalPageBreakCollection, HyperlinkCollection, LegendEntryCollection, ListColumnCollection, ListObjectCollection, MultipleFilterCollection, NameCollection, OdsCellFieldCollection, OleObjectCollection, PictureCollection, PivotFilterCollection, PivotFormatConditionCollection, PivotTableCollection, ProtectedRangeCollection, QueryTableCollection, RangeCollection, ReferredAreaCollection, RevisionCollection, RevisionLogCollection, ScenarioCollection, ScenarioInputCellCollection, SeriesCollection, ShapeCollection, ShapeGuideCollection, ShapePathCollection, ShapePathPointCollection, ShapeSegmentPathCollection, SlicerCacheItemCollection, SlicerCollection, SmartTagCollection, SmartTagPropertyCollection, SmartTagSetting, SparklineCollection, SparklineGroupCollection, TableStyleCollection, TableStyleElementCollection, TextBoxCollection, TextTabStopCollection, ThreadedCommentAuthorCollection, ThreadedCommentCollection, TimelineCollection, TrendlineCollection, ValidationCollection, VbaModuleCollection, VbaProjectReferenceCollection, VerticalPageBreakCollection, WebExtensionBindingCollection, WebExtensionCollection, WebExtensionPropertyCollection, WebExtensionReferenceCollection, WebExtensionTaskPaneCollection, WorksheetCollection, XmlMapCollection
public abstract class CollectionBase
- extends java.lang.Object
Provides the abstract base class for a strongly typed collection.
Constructor Summary |
CollectionBase()
Initializes a new instance of the CollectionBase class with the default initial capacity.
|
CollectionBase(int capacity)
Initializes a new instance of the CollectionBase class with the specified capacity.
|
Method Summary |
int | add(java.lang.Object o) | |
Adds an item to the CollectionBase instance.
|
void | clear() | |
Removes all objects from the CollectionBase instance.
|
boolean | contains(java.lang.Object o) | |
Return whether instance contains this object
|
java.lang.Object | get(int index) | |
Get an item at specified position.
|
int | getCount() | |
Gets the number of elements contained in the CollectionBase instance.
|
int | indexOf(java.lang.Object o) | |
Determines the index of a specific item in the CollectionBase instance.
|
java.util.Iterator | iterator() | |
Returns an enumerator that iterates through the CollectionBase instance.
|
void | removeAt(int index) | |
Removes the item at the specified index.
|
CollectionBase
public CollectionBase()
-
Initializes a new instance of the CollectionBase class with the default initial capacity.
CollectionBase
public CollectionBase(int capacity)
-
Initializes a new instance of the CollectionBase class with the specified capacity.
- Parameters:
capacity
- The number of elements that the new list can initially store.
iterator | |
public java.util.Iterator iterator() |
-
Returns an enumerator that iterates through the CollectionBase instance.
- Returns:
- An iterator for the CollectionBase instance.
getCount | |
public int getCount() |
-
Gets the number of elements contained in the CollectionBase instance.
- Returns:
- The number of elements contained in the CollectionBase instance.
clear | |
public void clear() |
-
Removes all objects from the CollectionBase instance.
add | |
public int add(java.lang.Object o) |
-
Adds an item to the CollectionBase instance.
- Parameters:
o
- The Object to add to the CollectionBase instance.
- Returns:
- The position into which the new element was inserted.
get | |
public java.lang.Object get(int index) |
-
Get an item at specified position.
- Parameters:
index
- Specified position index.
- Returns:
- The item at specified position.
contains | |
public boolean contains(java.lang.Object o) |
-
Return whether instance contains this object
- Parameters:
o
- test object
- Returns:
- Whether instance contains this object
removeAt | |
public void removeAt(int index) |
-
Removes the item at the specified index.
- Parameters:
index
- The zero-based index of the item to remove.
indexOf | |
public int indexOf(java.lang.Object o) |
-
Determines the index of a specific item in the CollectionBase instance.
- Parameters:
o
- Determines the index of a specific item in the CollectionBase instance.
- Returns:
- The index of value if found in the list; otherwise, -1.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.