FileDocCategorySizeDatePackage
ChainEnumeration.javaAPI DocExample635Tue Dec 08 01:21:00 GMT 1998oisoft.togetherx.scripts.SQL.impl

ChainEnumeration

public class ChainEnumeration extends Object implements Enumeration

Fields Summary
private Enumeration
myFirst
private Enumeration
mySecond
Constructors Summary
public ChainEnumeration(Enumeration first, Enumeration second)

    myFirst = first;
    mySecond = second;
  
Methods Summary
public booleanhasMoreElements()

    return myFirst.hasMoreElements() || mySecond.hasMoreElements();
  
public java.lang.ObjectnextElement()

    if(myFirst.hasMoreElements()){
      return myFirst.nextElement();
    }
    else{
      return mySecond.nextElement();
    }