org.openide.util
Interface Enumerations.Processor<T,R>

Enclosing class:
Enumerations

public static interface Enumerations.Processor<T,R>

Processor interface that can filter out objects from the enumeration, change them or add aditional objects to the end of the current enumeration.


Method Summary
 R process(T original, java.util.Collection<T> toAdd)
           
 

Method Detail

process

R process(T original,
          java.util.Collection<T> toAdd)
Parameters:
original - the object that is going to be returned from the enumeration right now
toAdd - can be non-null if one can add new objects at the end of the enumeration
Returns:
a replacement for this object