Java Access to WordNet

danbikel.wordnet
Interface RemoteEnumeration

All Superinterfaces:
Remote
All Known Implementing Classes:
RemoteEnumerator

public interface RemoteEnumeration
extends Remote

Provides an interface for using Enumeration objects remotely via RMI. RemoteEnumeration objects are fail-fast, just as normal Enumeration objects are.


Method Summary
 boolean hasMoreElements()
          Tests if the underlying enumeration object contains more elements.
 Object nextElement()
          Returns the next element of the underlying enumeration if the underlying enumeration object has at least one more element to provide.
 

Method Detail

hasMoreElements

public boolean hasMoreElements()
                        throws RemoteException
Tests if the underlying enumeration object contains more elements.

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

nextElement

public Object nextElement()
                   throws RemoteException
Returns the next element of the underlying enumeration if the underlying enumeration object has at least one more element to provide.

RemoteException

Java Access to WordNet

Author: Dan Bikel