站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ArrayEnumeration (Old Enumeration API) - NetBeans API Javadoc (Current Development Version)

org.openide.util.enumerations 6.5

org.openide.util.enum
Class ArrayEnumeration

java.lang.Object
  extended by org.openide.util.enum.ArrayEnumeration
All Implemented Interfaces:
Enumeration

Deprecated. JDK 1.5 treats enum as a keyword so this class was replaced by Enumerations.

public class ArrayEnumeration
extends Object
implements Enumeration

The class that presents specifiED (in constructor) array as an Enumeration.


Constructor Summary
ArrayEnumeration(Object[] array)
          Deprecated. Constructs a new ArrayEnumeration for specified array
 
Method Summary
 boolean hasMoreElements()
          Deprecated. Tests if this enumeration contains more elements.
 Object nextElement()
          Deprecated. Returns the next element of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(Object[] array)
Deprecated. 
Constructs a new ArrayEnumeration for specified array

Method Detail

hasMoreElements

public boolean hasMoreElements()
Deprecated. 
Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface Enumeration
Returns:
true if this enumeration contains more elements; false otherwise.

nextElement

public Object nextElement()
Deprecated. 
Returns the next element of this enumeration.

Specified by:
nextElement in interface Enumeration
Returns:
the next element of this enumeration.
Throws:
NoSuchElementException - if no more elements exist.

org.openide.util.enumerations 6.5

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.