Show / Hide Table of Contents

Interface ILongArrayEnumerator

An IEnumerator for ILongArray.

Inherited Members
IEnumerator.MoveNext()
IEnumerator.Reset()
IEnumerator.Current
Namespace: Tangosol.Util
Assembly: Coherence.dll
Syntax
public interface ILongArrayEnumerator : IEnumerator

Properties

Index

Returns the index of the current value, which is the value returned by the most recent call to the MoveNext method.

Declaration
long Index { get; }
Property Value
Type Description
long

The index of the current value.

Exceptions
Type Condition
InvalidOperationException

If the MoveNext method has not yet been called, or the remove method has already been called after the last call to the MoveNext method.

Methods

GetValue()

Returns the current value, which is the same value returned by the most recent call to the MoveNext method, or the most recent value passed to SetValue if SetValue were called after the MoveNext method.

Declaration
object GetValue()
Returns
Type Description
object

The current value.

Exceptions
Type Condition
InvalidOperationException

If the MoveNext method has not yet been called, or the Remove method has already been called after the last call to the MoveNext method.

SetValue(object)

Stores a new value at the current value index, returning the value that was replaced. The index of the current value is obtainable by reading the Index property.

Declaration
object SetValue(object value)
Parameters
Type Name Description
object value

The new value to store.

Returns
Type Description
object

The replaced value.

Exceptions
Type Condition
InvalidOperationException

If the MoveNext method has not yet been called, or the Remove method has already been called after the last call to the MoveNext method.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.