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

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

org.openide.util.enumerations 6.5

org.openide.util.enum
Class AlterEnumeration

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

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

public abstract class AlterEnumeration
extends Object
implements Enumeration

Abstract class that takes an enumeration and alter their elements to new objects. To get this class fully work one must override alter method. Objects in the input and resulting enumeration must not be null.


Constructor Summary
AlterEnumeration(Enumeration en)
          Deprecated.  
 
Method Summary
protected abstract  Object alter(Object o)
          Deprecated. Alters objects.
 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

AlterEnumeration

public AlterEnumeration(Enumeration en)
Deprecated. 
Parameters:
en - enumeration to filter
Method Detail

alter

protected abstract Object alter(Object o)
Deprecated. 
Alters objects. Overwrite this to alter the object in the enumeration by another.

Parameters:
o - the object to decide on
Returns:
new object to be placed into the output enumeration

hasMoreElements

public boolean hasMoreElements()
Deprecated. 
Specified by:
hasMoreElements in interface Enumeration
Returns:
true if there is more elements in the enumeration

nextElement

public Object nextElement()
Deprecated. 
Specified by:
nextElement in interface Enumeration
Returns:
next object in the enumeration
Throws:
NoSuchElementException - can be thrown if there is no next object in the enumeration

org.openide.util.enumerations 6.5

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