Liferay 6.2-ce-ga5

com.liferay.portal.kernel.util
Class MappingEnumeration<T,R>

java.lang.Object
  extended by com.liferay.portal.kernel.util.MappingEnumeration<T,R>
All Implemented Interfaces:
Enumeration<R>

public class MappingEnumeration<T,R>
extends Object
implements Enumeration<R>


Nested Class Summary
static interface MappingEnumeration.Mapper<T,R>
           
 
Field Summary
protected  Enumeration<T> enumeration
           
protected  MappingEnumeration.Mapper<T,R> mapper
           
protected  R nextElement
           
 
Constructor Summary
MappingEnumeration(Enumeration<T> enumeration, MappingEnumeration.Mapper<T,R> mapper)
           
 
Method Summary
 boolean hasMoreElements()
           
 R nextElement()
           
protected  R nextMappedElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enumeration

protected final Enumeration<T> enumeration

mapper

protected final MappingEnumeration.Mapper<T,R> mapper

nextElement

protected R nextElement
Constructor Detail

MappingEnumeration

public MappingEnumeration(Enumeration<T> enumeration,
                          MappingEnumeration.Mapper<T,R> mapper)
Method Detail

hasMoreElements

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

nextElement

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

nextMappedElement

protected final R nextMappedElement()

Liferay 6.2-ce-ga5