Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

Enumeration Class Reference

#include <coherence/util/Enumeration.hpp>

Inherits Object.

List of all members.


Detailed Description

An object that implements the Enumeration interface generates a series of elements, one at a time.

Successive calls to the nextElement method return successive elements of the series.

Author:
tb 2010.10.16

Public Types

typedef spec::Handle Handle
 Enumeration Handle definition.
typedef spec::View View
 Enumeration View definition.
typedef spec::Holder Holder
 Enumeration Holder definition.

Public Member Functions

virtual bool hasMoreElements () const =0
 Tests if this enumeration contains more elements.
virtual Object::Holder nextElement ()=0
 Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Member Function Documentation

virtual bool hasMoreElements (  )  const [pure virtual]

Tests if this enumeration contains more elements.

Returns:
true if and only if this enumeration object contains at least one more element to provide; false otherwise

virtual Object::Holder nextElement (  )  [pure virtual]

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Returns:
the next element of this enumeration
Exceptions:
coherence::lang::NoSuchElementException if no more elements exist.


The documentation for this class was generated from the following file:
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.