com.togethersoft.openapi.util.enum
Class FilterEnumeration


public class FilterEnumeration
implements Enumeration

Presents enumeration with filter which is a specified unary operation.

Author:
TogetherSoft

Constructor Summary
FilterEnumeration(Enumeration source, UnaryOperation filter)
           Creates new enumeration from exists and specifies filter for enumeration.

Method Summary
 booleanhasMoreElements()
           Checks is there more elements in enumeration.
 ObjectnextElement()
           Returns next Object proceeded by unary operation.

Constructor Detail

FilterEnumeration

public FilterEnumeration(Enumeration source, UnaryOperation filter)
Creates new enumeration from exists and specifies filter for enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks is there more elements in enumeration.
Returns: true if there is, false else.

nextElement

public Object nextElement()
Returns next Object proceeded by unary operation.
Returns: Object proceeded by unary operation.

Association Links

to Class com.togethersoft.openapi.util.function.UnaryOperation