com.togethersoft.openapi.util.enum
Class FilterEnumeration
- public class FilterEnumeration
- implements Enumeration
Presents enumeration with filter which is a specified unary operation.
- Author:
- TogetherSoft
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in enumeration. |
Object | nextElement() Returns next Object proceeded by unary operation. |
FilterEnumeration
public FilterEnumeration(Enumeration source, UnaryOperation filter)
- Creates new enumeration from exists and specifies filter for enumeration.
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.
to Class com.togethersoft.openapi.util.function.UnaryOperation