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

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

org.openide.util.enumerations 6.5

org.openide.util.enum
Class SequenceEnumeration

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

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

public class SequenceEnumeration
extends Object
implements Enumeration

Composes several enumerations into one.


Constructor Summary
SequenceEnumeration(Enumeration en)
          Deprecated. Constructs new enumeration from already existing.
SequenceEnumeration(Enumeration first, Enumeration second)
          Deprecated. Composes two enumerations into one.
 
Method Summary
 boolean hasMoreElements()
          Deprecated.  
 Object nextElement()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceEnumeration

public SequenceEnumeration(Enumeration en)
Deprecated. 
Constructs new enumeration from already existing. The elements of en should be also enumerations. The resulting enumeration contains elements of such enumerations.

Parameters:
en - enumeration of Enumerations that should be sequenced

SequenceEnumeration

public SequenceEnumeration(Enumeration first,
                           Enumeration second)
Deprecated. 
Composes two enumerations into one.

Parameters:
first - first enumeration
second - second enumeration
Method Detail

hasMoreElements

public boolean hasMoreElements()
Deprecated. 
Specified by:
hasMoreElements in interface Enumeration
Returns:
true if we have more elements

nextElement

public Object nextElement()
Deprecated. 
Specified by:
nextElement in interface Enumeration
Returns:
next element
Throws:
NoSuchElementException - if there is no next element

org.openide.util.enumerations 6.5

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