# IntermediateResult

The `IntermediateResult` class represents a container containing a collection of `IntermediateResultUnit` objects.

## Definition

*Package:* com.dynamsoft.core.intermediate_results

```java
public class IntermediateResult
```

## Methods

| Method | Description |
|--------|-------------|
| [`getCount`](#getcount) | Gets the count of `IntermediateResultUnit` objects in the collection. |
| [`getIntermediateResultUnit`](#getintermediateresultunit) | Gets the `IntermediateResultUnit` object at the specified index. |
| [`getIntermediateResultUnits`](#getintermediateresultunits) | Gets all `IntermediateResultUnit` objects in the collection. |

### getCount

Gets the count of `IntermediateResultUnit` objects in the collection.

```java
public int getCount()
```

**Return value**

Returns the count of `IntermediateResultUnit` objects in the collection.

### getIntermediateResultUnit

Gets the `IntermediateResultUnit` object at the specified index.

```java
public IntermediateResultUnit getIntermediateResultUnit(int index)
```

**Parameters**

`index` The index of the `IntermediateResultUnit` object to retrieve.

**Return value**

Returns the `IntermediateResultUnit` object at the specified index.

**See Also**

[IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/intermediate-results/intermediate-result-unit.md)

### getIntermediateResultUnits

Gets all `IntermediateResultUnit` objects in the collection.

```java
public IntermediateResultUnit[] getIntermediateResultUnits()
```

**Return value**

Returns all `IntermediateResultUnit` objects in the collection.

**See Also**

[IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/intermediate-results/intermediate-result-unit.md)
