Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class ConverterEnumerator

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.util.ConverterEnumerator

All Implemented Interfaces:
  java.util.Enumeration, java.util.Iterator

    public class ConverterEnumerator

extends Base
implements java.util.Enumeration, java.util.Iterator

Provide an implementation of an enumerator which converts each of the items which it enumerates.

Version:
  1.00, 2002.02.07
Author:
  Cameron Purdy

Field Summary
`protected Converter` | `m_conv` Converter to convert each item.
`protected java.util.Iterator` | `m_iter` Iterator of Objects to convert.

Constructor Summary
`ConverterEnumerator(java.util.Enumeration enmr, Converter conv)` Construct the Converter enumerator based on an Enumeration.
`ConverterEnumerator(java.util.Iterator iter, Converter conv)` Construct the Converter enumerator based on an Iterator.
`ConverterEnumerator(java.lang.Object[] aoItem, Converter conv)` Construct the Converter enumerator based on an array of objects.

Method Summary
`boolean` | `hasMoreElements()` Tests if this enumeration contains more elements.
`boolean` | `hasNext()` Determine if this Iterator contains more elements.
`java.lang.Object` | `next()` Returns the next element of this Iterator.
`java.lang.Object` | `nextElement()` Get the next element in the enumeration.
`void` | `remove()` Remove the last-returned element that was returned by the Iterator.

Field Detail

### m_iter

    protected java.util.Iterator m_iter

  Iterator of Objects to convert.

### m_conv

    protected Converter m_conv

  Converter to convert each item.

Constructor Detail

### ConverterEnumerator

    public ConverterEnumerator(java.util.Enumeration enmr,
                               Converter conv)

  Construct the Converter enumerator based on an Enumeration.

  Parameters:
    `enmr` - java.util.Enumeration of objects to convert
    `conv` - a Converter

### ConverterEnumerator

    public ConverterEnumerator(java.util.Iterator iter,
                               Converter conv)

  Construct the Converter enumerator based on an Iterator.

  Parameters:
    `iter` - java.util.Iterator of objects to convert
    `conv` - a Converter

### ConverterEnumerator

    public ConverterEnumerator(java.lang.Object[] aoItem,
                               Converter conv)

  Construct the Converter enumerator based on an array of objects.

  Parameters:
    `aoItem` - array of objects to enumerate
    `conv` - a Converter

Method Detail

### hasMoreElements

    public boolean hasMoreElements()

  Tests if this enumeration contains more elements.

  Specified by:
    `hasMoreElements` in interface `java.util.Enumeration`
  Returns:
    false if the enumeration has been exhausted

### nextElement

    public java.lang.Object nextElement()

  Get the next element in the enumeration.

  Specified by:
    `nextElement` in interface `java.util.Enumeration`
  Returns:
    the next element of this enumeration

### hasNext

    public boolean hasNext()

  Determine if this Iterator contains more elements.

  Specified by:
    `hasNext` in interface `java.util.Iterator`
  Returns:
    true if the Iterator contains more elements, false otherwise

### next

    public java.lang.Object next()

  Returns the next element of this Iterator.

  Specified by:
    `next` in interface `java.util.Iterator`
  Returns:
    the next element in the Iterator

### remove

    public void remove()

  Remove the last-returned element that was returned by the Iterator.

  Specified by:
    `remove` in interface `java.util.Iterator`

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.