---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/basecollection
---

# BaseCollection — Aspose.Slides FOSS Java API Reference

BaseCollection — Internal base class for Aspose.Slides collection types. Inherits from: `Iterable<T>`.

**Package**: `org.aspose.slides.foss.internal`

> **Note**: This is an internal implementation class. Do not import or use it directly — the package `org.aspose.slides.foss.internal` is not part of the public API and may change without notice. This page is provided for reference only.

---

## Properties

| Property | Type | Access | Description |
|---|---|---|---|
| `empty` | `boolean` | Read | Whether empty is enabled. |

---

## Methods

| Method | Returns | Description |
|---|---|---|
| `size()` | `int` | Returns the number of elements in this collection. |
| `get(int index)` | `T` | Returns the element at the specified index. |
| `length()` | `int` | Returns the number of elements. |
| `isEmpty()` | `boolean` | Returns true if this collection contains no elements. |
| `iterator()` | `Iterator<T>` | Returns an iterator over the elements in this collection, in index order. |
| `hasNext()` | `boolean` | Returns whether a next is present. |
| `next()` | `T` | Performs the next operation. |
| `contains(Object item)` | `boolean` | Tests whether this collection contains the specified element. |

---

## See Also

- [Aspose.Slides FOSS Java API Reference home](/slides/java/)
- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)