TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.util
Class JointEnumeration<E>

java.lang.Object
  extended by de.schlichtherle.truezip.util.JointEnumeration<E>
All Implemented Interfaces:
Enumeration<E>

@NotThreadSafe
public final class JointEnumeration<E>
extends Object
implements Enumeration<E>

Concatenates two enumerations.

Author:
Christian Schlichtherle

Field Summary
private  Enumeration<? extends E> e1
           
private  Enumeration<? extends E> e2
           
 
Constructor Summary
JointEnumeration(Enumeration<? extends E> e1, Enumeration<? extends E> e2)
           
 
Method Summary
 boolean hasMoreElements()
           
 E nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e1

private Enumeration<? extends E> e1

e2

private final Enumeration<? extends E> e2
Constructor Detail

JointEnumeration

public JointEnumeration(Enumeration<? extends E> e1,
                        Enumeration<? extends E> e2)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<E>

nextElement

public E nextElement()
Specified by:
nextElement in interface Enumeration<E>

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.